Click or drag to resize

BaseServiceTokenCreate Method

**OBSOLETE** See V2 CreateToken(CreateTokenIn)

Namespace: AppOne.Web.Service.Services.V1R0
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public string TokenCreate(
	TokenCreate request
)

Parameters

request  TokenCreate
A new valid TokenCreate object

Return Value

String
A base64 encoded string that varies in length from 255-300 characters
Remarks
Use this method to create a token. A token is required to perform any action or service request. The input name for most tokens is 'AuthToken' and can passed as an input in the payload or part of the query string.

Note  Note
A token return string will live for about 2 hours once created. After that the token will expire and a new one will need to be created. This method is very lightweight and can be called before each request if needed to ensure a token is never stale, however it is recommend that you try to reuse the generated token in your work-flow if possible.

Caution note  Caution
It is recommend to always validate a token via the [!:TokenValidate] method before sending a request. Sending in an invalid token will result in an error.
See Also