CreateAccessTokens

 

AccessTokenService / CreateAccessTokens

 

Description: Create Access Tokens

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

Method: POST

Token Required: True


Request Headers:
content-type: application/json or content-type: application/xml
token: {token}
Request:

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

Parameter Type Nullable
Request.AccessTokens Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.AccessTokens.AccessToken[] False

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[]

The following is an example request Xml body:
<AccessTokenRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.AccessToken" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <AccessTokens xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.AccessTokens">
    <a:AccessToken>
      <a:ExpiredDate>2014-04-24T17:53:43.1911976Z</a:ExpiredDate>
      <a:Username>String</a:Username>
    </a:AccessToken>
  </AccessTokens>
</AccessTokenRequest>

The following is an example request Json body:
{
	"AccessTokens":[
		{
			"ExpiredDate":"\/Date(1398362023191)\/",
			"Username":"String"
		}
	]
}

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.1911976Z</a:CreatedDate>
      <a:ExpiredDate>2014-04-24T17:53:43.1911976Z</a:ExpiredDate>
      <a:LastActivityTime>2014-04-24T17:53:43.1911976Z</a:LastActivityTime>
      <a:Ticket>11111111-1111-1111-1111-111111111111</a:Ticket>
      <a:Username>String</a:Username>
    </a:AccessToken>
  </AccessTokens>
</AccessTokenResponse>

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