Getting video title using video id in youtube api v3 (Android) -


i trying youtube video details using video id in youtube api v3. using url :

https://www.googleapis.com/youtube/v3/videos?id=7lcdeyxw3mm&key=aizasyca-el5st5lcqnyaunmm2ku_pukvbcz6ms%20&part=snippet,contentdetails 

i return of :

{ "error": { "errors": [ { "domain": "usagelimits", "reason": "iprefererblocked", "message": "the android package name , signing-certificate fingerprint, null , null, not match app restrictions configured on api key. please use api console update key restrictions.", "extendedhelp": "https://console.developers.google.com/apis/credentials?project=861763996907" } ], "code": 403, "message": "the android package name , signing-certificate fingerprint, null , null, not match app restrictions configured on api key. please use api console update key restrictions." } } 

the api key key 1 got after registering app using sha1 code in google developer console. how on error?

you can make service method mobile.all need create server key , append key , video id url , data

for example: if using volley http requests in jsonobjectrequest url parameter should this:

"https://www.googleapis.com/youtube/v3/videos?id=f4huiqwgubu&key=your_server_key&fields=items(id,snippet(description,channelid,title,categoryid),statistics)&part=snippet,statistics" 

hope helps.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -