For reasons if you are not using the Google API-Explorer and if you are using POSTMAN client to access Google Cloud API’s then you would face with an interesting question about how to generate a token so that i could authenticate to google cloud
Steps to Generate a Token
- Login to Google Cloud Console
- In API & Services -> Credentials create an OAuth 2.0 client ID
- Authorize the redirect URL
- Login to Postman client/browser app
- Use the below settings in postman
Token name : Google Token
Callback URL : https://appnameorurlhere.com for eg something.googleapis.com/
Auth URL : https://accounts.google.com/o/oauth2/auth
Access Token URL : https://accounts.google.com/o/oauth2/token
Client ID : CLIENTIDHERE.googleusercontent.com
Client Secret : CLIENTSECRETHERE
Scope : https://www.googleapis.com/auth/cloud-platform
Generate the OAuth ID and Authorize the redirect URL
Request a token and use the token for your requests
https://medium.com/@pnatraj/google-cloud-api-with-postman-f4cf070e665f
'Others' 카테고리의 다른 글
VSCode에서 항상 새탭으로 파일 열기 (0) | 2019.11.18 |
---|---|
[SSL] 최신 안드로이드 브라우저에서 SSL 인증서 경고가 뜨는 경우 (0) | 2018.06.04 |