Google::Auth::ServiceAccountCredentials
Service Account (JWT) credentials for server-to-server authentication.
creds = Google::Auth::ServiceAccountCredentials.from_json_key("key.json", scope: Google::Auth::Scopes::YOUTUBE)
youtube = Google::Apis::YoutubeV3::YouTubeService.new
youtube.authorize(creds)
Constants
GOOGLE_TOKEN_URL = "oauth2.googleapis.com"
GRANT_TYPE = "urn:ietf:params:oauth:grant-type:jwt-bearer"
TOKEN_PATH = "/token"
Constructors
Instance methods
access_token
Sourceclient_email
Sourceexpired?
Sourceexpires_at
Sourceprivate_key
Sourcerefresh!
Sourcescope
Sourcetoken_uri
Sourcevalid_token
Source