RetrieveAccessTokens

 

AccessTokenService / RetrieveAccessTokens

 

Description: Retrieve Access Tokens

URL: http://{your-server-url}/api/v1/core/accesstokens

Method: GET

Token Required: True


Request Headers:
content-type: application/json or content-type: application/xml
token: {token}
Request Query Parameters:
Parameter Type Nullable Description
usernames string[] True comma separated values, eg. usernames=james,jason,jane
userids int[] True comma separated values, eg. userids=1,2,3
sort string True sorting fields: createddate, username, expireddate, lastactivitytime. Comma seperated values, unary negative to imply descending sort order, e.g. sort=-createddate
page int True page number
rpp int True records per page, default = 50, max = 500
tickets string[] True comma separated values, eg. tickets={ticket1},{ticket2}

Example: http://{your-server-url}/api/v1/core/accesstokens?userids=1,2,3&sort=string&page=100


Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.AccessToken.AccessTokenResponse

Parameter Type
Response.AccessTokens Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.AccessTokens.AccessToken[]
Response.CurrentPage int
Response.TotalPages int
Response.Rpp int

The following is an example response Xml body:
<AccessTokenResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.AccessToken" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage>
  <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">
    <Error>
      <Code>String</Code>
      <Message>String</Message>
      <StackTrace>String</StackTrace>
    </Error>
  </Errors>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status>
  <AccessTokens xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.AccessTokens">
    <a:AccessToken>
      <a:CreatedDate>2014-04-24T17:53:43.1901966Z</a:CreatedDate>
      <a:ExpiredDate>2014-04-24T17:53:43.1901966Z</a:ExpiredDate>
      <a:LastActivityTime>2014-04-24T17:53:43.1901966Z</a:LastActivityTime>
      <a:Ticket>11111111-1111-1111-1111-111111111111</a:Ticket>
      <a:Username>String</a:Username>
    </a:AccessToken>
  </AccessTokens>
  <CurrentPage>123</CurrentPage>
  <Rpp>123</Rpp>
  <TotalPages>123</TotalPages>
</AccessTokenResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"AccessTokens":[
		{
			"CreatedDate":"\/Date(1398362023190)\/",
			"ExpiredDate":"\/Date(1398362023190)\/",
			"LastActivityTime":"\/Date(1398362023190)\/",
			"Ticket":"11111111-1111-1111-1111-111111111111",
			"Username":"String"
		}
	],
	"CurrentPage":123,
	"Rpp":123,
	"TotalPages":123
}