FetchConnectionCredential
Updated at:
Fetches the OAuth credential generated after successful authorization. The Development Platform uses this credential to access third-party code hosting platforms.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
devs:FetchConnectionCredential |
get |
*All Resource
|
None | None |
Request syntax
GET /2023-07-14/connections/{name}/fetchCredential HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the connection. |
demo-name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
| OAuthCredential |
The OAuth credential. |
Examples
Success response
JSON format
{
"token": "4e84246b6b3962cd3d207aad1ea2f911",
"type": "bearer",
"scope": "user_info projects pull_requests hook gists emails",
"expiration": 1716263324603,
"createdTime": 1716176924603,
"refreshToken": "4d77bfae284770d94ebeed6b0199ebfd65e3943ba4f1e44dc36d792a93ba0d13"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.
Is this page helpful?