c# - YouTube Analytics API -
i newbie google apis , wanted start on working youtube analytics api generate reports.i have created project in side google developer console.when click on credentials there 2 options - oauth , public api access .i not able understand way should go oauth or public api access .for oauth while creating new client id there 3 options - web application,service account , installed application here recommended way ?please me understand things.
note : our requirement use youtube analytics api generate reports uploaded videos on our clients channel.
when comes private user data, oauth 2.0 recommended authorization method analytics api. if you're collecting , storing data used on end, want go server-side application approach.
from documentation:
- the server-side flow supports web applications can securely store persistent information.
- the client-side flow supports javascript applications running in browser.
- the installed application flow supports applications installed on device, such phone or computer.
from documentation on service account option:
the service account flow supports server-to-server interactions not access user information. however, the youtube analytics api not support flow. since there no way link service account youtube account, attempts authorize requests flow generate error.
there's lot of documentation on of these options provided you, i'd recommend reading through in entirety make sure have firm grasp on concepts. click here read oauth 2.0 youtube analytics api
cheers!
edit: clear, if you're collecting data through backend application, use "service account" option generating oauth client ids. if, however, you're having interact api reports through web/installed application, select "web/installed application". hope helpful , clear.
Comments
Post a Comment