472,958 Members | 2,022 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 3092

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...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.