Generate & Refresh OAuth Access Token
post
Generate & Refresh OAuth Access Token
Used by 3rd party applications to get the Access token using the Authorization code and refresh the Access token using the Refresh Token.
To get access token, the following values are required
To refresh token, the following value is required
To get access token, the following values are required
- Code
- Redirect_url
To refresh token, the following value is required
- Refresh_token
Resource URL
https://api.visitsingapore.com /sso/oauth/accessToken
Body Parameters
Request Attributes
Parameter Name | Type | Max Length | Description | Example |
---|
Response Error Details
HTTP Code | Description |
---|---|
400 | Request was not accepted and could be due to malformed parameter (e.g. spelling error) or missing a required parameter. |
401 | API key is invalid or was not provided. |
403 | API key does not have the permission to perform the request. |
404 | Requested resource (i.e. the resource URL) does not exist. |
405 | The HTTP request method is not supported by the resource. |
406 | Requester's acceptable content type for the response does not match the content type returned by the resource. |
414 | Request URL exceeded the maximum acceptable URL length. |
415 | Request's format is not supported by the resource. |
500 | Something is not working on TIH's end, happened very rarely. |
Resource Summary
Security | Content Type | Category |
---|---|---|
|
Visit Singapore Account OAuth API |
Working...