Find Jobs
Hire Freelancers

fix some youtube api v3 issue in php

₹1500-12500 INR

Kapalı
İlan edilme: 8 yıldan fazla önce

₹1500-12500 INR

Teslimde ödenir
I have built a site that runs on youtube api v3. But I want to improve it. I want some videos upload to there youtube account. subscribe button and like and unlike button. Mange there channel and many more I will tell you in chat. Please take a look of it: [login to view URL] I want to take a small test of you it is very simple just for your youtube api v3 knowledge I have change my comment function and you have to make it right here it is require_once 'Google/[login to view URL]'; require_once 'Google/[login to view URL]'; require_once 'Google/Service/[login to view URL]'; session_start(); $OAUTH2_CLIENT_ID = 'XXX'; $OAUTH2_CLIENT_SECRET = 'XXX'; $VIDEO_ID = 'XXX'; $TEXT = 'hi'; $client = new Google_Client(); $client->setClientId($OAUTH2_CLIENT_ID); $client->setClientSecret($OAUTH2_CLIENT_SECRET); $client->setScopes('[login to view URL]'); $redirect = filter_var('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'],FILTER_SANITIZE_URL); $client->setRedirectUri($redirect); $authUrl = $client->createAuthUrl(); header('Location: ' . $authUrl); $youtube = new Google_Service_YouTube($client); if (isset($_GET['code'])) { while(strval($_SESSION['state']) !== strval($_GET['state'])){ $authUrl = $client->createAuthUrl(); header('Location: ' . filter_var($authUrl, FILTER_SANITIZE_URL)); } $client->authenticate($_GET['code']); $_SESSION['token'] = $client->getAccessToken(); header('Location: ' . $redirect); } if (isset($_SESSION['token'])) { $client->setAccessToken($_SESSION['token']); } if ($client->getAccessToken()) { try { $commentSnippet = new Google_Service_YouTube_CommentSnippet(); $commentSnippet->setTextOriginal($TEXT); $topLevelComment = new Google_Service_YouTube_Comment(); $topLevelComment->setSnippet($commentSnippet); $commentThreadSnippet = new Google_Service_YouTube_CommentThreadSnippet(); $commentThreadSnippet->setTopLevelComment($topLevelComment); $commentThread = new Google_Service_YouTube_CommentThread(); $commentThread->setSnippet($commentThreadSnippet); $commentThreadSnippet->setVideoId($VIDEO_ID); $videoCommentInsertResponse = $youtube->commentThreads->insert('snippet', $commentThread); } catch (Google_Service_Exception $e) { $htmlBody = sprintf('<p>A service error occurred: <code>%s</code></p>',htmlspecialchars($e->getMessage())); } catch (Google_Exception $e) { $htmlBody = sprintf('<p>An client error occurred: <code>%s</code></p>',htmlspecialchars($e->getMessage())); } $_SESSION['token'] = $client->getAccessToken(); } Correct the code and write it in your Proposal. If you not write I will not consider you. It is a small test only.
Proje No: 9248523

Proje hakkında

3 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 8 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
3 freelancer bu proje için ortalama ₹9.074 INR teklif veriyor
Kullanıcı Avatarı
dfghdfghb dfghdbfg dfgdxfgghdfgdfgser dhtryg rtgwestgf rjgyhfnedrtyr nmg drt sgdrf gt,gyhe rtg et edrt ert rt ergyergertg rtgersgt er tg ert ehjedtryg sr
₹8.333 INR 3 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
I hkdsf isdjfk dgfdf dferter tyhedrtgr gyergt rgyerg jrth thjetr r tgh r h
₹11.111 INR 3 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
A proposal has not yet been provided
₹7.777 INR 3 gün içinde
0,0 (0 değerlendirme)
0,0
0,0

Müşteri hakkında

   INDIA bayrağı
kolkata, India
0,0
0
Kas 4, 2014 tarihinden bu yana üye

Müşteri Doğrulaması

Bu müşterinin diğer işleri

Build a Website
₹12500-37500 INR
Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.