PHP YouTube Live Streaming API insufficientPermissions Error -


i trying access listlivebroadcasts through "youtube live streaming api" (youtube data api v3). have auth 2.0 access , token every time. same logic accessing google+ calendar events successfully, have enabled youtube api also. when trying list :

$youtube->livebroadcasts->listlivebroadcasts( 'id,contentdetails', array( 'mine' => 'true', )); 

it gives error :

[domain] => global [reason] => insufficientpermissions [message] => insufficient permission 

i have tried everything, set scope $scopes

auth/youtube; 

tried including :

force-ssl readonly 

same code working @

https://developers.google.com/youtube/v3/live/docs/livebroadcasts/list 

with google's example api key.

you shouldn't using google's sample api key. create new application in developer console , use application's api key.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -