473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

get youtube channel subscribers via youtube API

Hello
I'm trying to use Google Api to get a list of youtube channels the users subscribed to using this file https://github.com/google/google-api...er-example.php and setting $client_id,$client_secret and $redirect_ur. The redirect url is another webpage that stores the code in a variable and it's the same url in the google developer app settings. after running the page I get redirected to the url that looks like this

Expand|Select|Wrap|Line Numbers
  1. http://mywebsite.com/google/test.php?code=code here
  2. $code = $_REQUEST['code'];
Now I want to use the access token to get a list of youtube channel ids the user had subscribed to using this code

Expand|Select|Wrap|Line Numbers
  1. $data =file_get_contents('https://www.googleapis.com/youtube/v3/subscriptions?part=snippet
  2. &maxResults=50&access_token='.$code.'&mine=true&key=My API Key Here');
  3. var_export($data) 
But i get "false". How to solve this?
Jan 29 '15 #1
0 3104

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: kevin | last post by:
If you go here http://www.youtube.com/ how do they put the plus button over the image? Also is it possible to include more the one button. Thanks... ----== Posted via Newsfeeds.Com -...
2
by: AngelDude | last post by:
I've done loads of googling trying to find an answer to this question....so advice, experience would be appreciated. I downloaded a software application last week and among other things, it...
0
by: Serge Rielau | last post by:
http://www.youtube.com/user/channeldb2 ....time to padlock my cube... ;-) -- Serge Rielau DB2 Solutions Development IBM Toronto Lab
0
by: ahmad | last post by:
New youtube video http://www.youtube.com/watch?v=2R31xnFeL2Q http://www.youtube.com/watch?v=tWxFZRgh664 http://www.youtube.com/watch?v=K20FaUQpCEk ...
0
by: jayfer | last post by:
I'm not sure if this is the right thread, considering I have no idea how to do this. I'm designing a website for a friend who wants his youtube videos to be on the site. I'd like to make it so when...
3
by: Noam Noam | last post by:
Hi, I wanna download of the Machinima channel only the videos that have the word "trailer" it thier title. whats the code for something like that?
5
by: buynsell | last post by:
After bunch of searching on google I end up with posting new thread for help, I am trying to login to youtube using webRequest/Response but no success, it is returning source code which tells that...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.