Was this helpful?

API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path:

/oauth2/accesstokens/{access_token}

Description: Gets details of a specific Access Token

Verb: GET
Auth: Basic Auth
Media types:
application/json
text/xml
Sample Request:
$ curl -X GET -H "Accept:application/json" \
https://api.enterprise.apigee.com/v1/o/(org_name)/oauth2/accesstokens/{access_token} \
-u myname:mypass
Sample Response:
{
  "app" : "app1",
  "attributes" : [ ],
  "clientId" : "fGytmxA5UDajPMdOA5E3bebiBOBPikOT",
  "createdAt" : 1343036540877,
  "createdBy" : "defaultUser",
  "expiresAt" : 1343038340877,
  "grantType" : "password",
  "issuedAt" : 1343036540877,
  "lastModifiedAt" : 1343036540877,
  "lastModifiedBy" : "defaultUser",
  "refreshCount" : 0,
  "refreshToken" : "Nn5Pt2eO",
  "scope" : "",
  "status" : "approved",
  "token" : "25poPXCPOw43s0hJBn6tQYnUb5KF",
  "tokenType" : "BearerToken"
}
Response Payload Elements:
Name Description
app Name of the app for which the access token was created
attributes Name'value pairs used to extend the default access token profile
clientId Consumer secret of the app
createdAt Unix time when the access token was created
createdBy User name of the Apigee user who created the access token
expiresAt Unix time when the access token expires
grantType Grant type of the access token: auth code, client_credential, refresh token
issuedAt Unix time when the access token was issued
lastModifiedAt Unix time when the access token was last modified
lastModifiedBy User name of the Apigee user who last modified the access token
defaultUser The default user of the access token
refreshCount Number of times the token has been refreshed
refreshToken The value of the refresh token
scope Comma separated list of scopes included int he token
status Status of the access token: approved, revoked, expired.
token Value of the access token
tokenType Token type: bearer
Errors
Failure 404 with proper error message
{
  "code" : "keymanagement.service.AccessTokenDoesntExists",
  "message" : "Access Token doesnt exists",
  "contexts" : [ ]
}

Error Codes:
1. keymanagement.service.oauth_access_token_doesnot_exist

コメント

Hi

I am new to apigee. i want to get a apigee acesstoken using play framework. can anyone help on this with code

Can you say a little more? What are you trying to achieve?

Thanks,
- Randy

コメントを追加

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.