Working with scopes in code
Scopes for the YouTube API are implemented by the YouTubeScope
class, which again inherits from GoogleScope
. A list of known scopes are available through either the YouTubeScopes
or GoogleScopes
classes.
When setting up the code for an authentication page, you must specify the scopes through an instance of GoogleScopeCollection
. There are a couple of different ways to create an instance of this calls, so see the snippet below for examples: