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.