Stay organized with collections
Save and categorize content based on your preferences.
OAuth 2.0 is used to access Google APIs. It supports server-to-server interactions
such as those between a web or native application and a Google service. For this
scenario, you need a service account, which is an account that belongs to your
application instead of to an individual end user. Your application calls Google
APIs on behalf of the service account, so users aren't directly involved.
To begin, you must obtain OAuth 2.0 client credentials from the Google API Console.
Your application requests an access token from the Google Authorization Server,
extracts a token from the response, and sends the token to the Google API that
you want to access.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-16 UTC."],[[["OAuth 2.0 and service accounts are used for server-to-server interactions with Google APIs, letting applications access Google services on their own behalf."],["To use the Omnichannel API, you need to create a service account in the Google API Console and obtain OAuth 2.0 client credentials."],["Your application requests an access token using these credentials and includes it in requests to the Omnichannel API, using the `https://www.googleapis.com/auth/nbupaymentsmerchants` scope."],["Share the service account's name (\"client_email\" from the downloaded JWT) to enable access to the Omnichannel API."]]],["OAuth 2.0 enables server-to-server access to Google APIs via a service account, eliminating direct user involvement. The process involves obtaining OAuth 2.0 client credentials from the Google API Console. Your app will need to request, receive, and use an access token from the Google Authorization Server to access the API. For Omnichannel API access, the authorization scope `https://www.googleapis.com/auth/nbupaymentsmerchants` is mandatory, a service account, shared with them, must be created, and JSON web token is downloaded to access the API.\n"]]