Page tree
Skip to end of metadata
Go to start of metadata

This function is used to create a token that is assigned to a user and company

Parameters

Supply the following

  1. UserName - string
    The id of the dk user that the token will be assigned to
  2. Password - string
    The password associated with the dk user
  3. Company - string
     The company id that the token will be linked to
  4. AppID - string
    The application id that is assigned to the token
     

Returns

the function return the following

  • TToken
    this token should then be used to authenticate to the service for other calls

 

Note : Tokens only have the lifespan of 5 day´s and need to be refreshed using the MasterToken