Find Jobs
Hire Freelancers

Develop a youtube app by api v3

$25-50 USD / hour

已关闭
已发布超过 8 年前

$25-50 USD / hour

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 with Ajax means on the same webpage and write it in your Proposal. If you not write I will not consider you. It is a small test only.
项目 ID: 9282585

关于此项目

7提案
远程项目
活跃8 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
7威客以平均价$40 USD/小时来参与此工作竞价
用户头像
A proposal has not yet been provided
$38 USD 在3天之内
4.9 (7条评论)
3.7
3.7

关于客户

INDIA的国旗
kolkata, India
0.0
0
会员自12月 19, 2015起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。