POST User/GetUserBearerTokenWithUserId

Verkrijg een UserBearer en User-id om mee te kunnen sturen in requests.

Request Information

URI Parameters

None.

Body Parameters

UserCredentials
NameDescriptionTypeAdditional information
UserName

Gebruikersnaam

string

Required

Password

Wachtwoord

string

Required

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2"
}

application/xml, text/xml

Sample:
<UserCredentials xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
</UserCredentials>

Response Information

Resource Description

Logic4ResponseOfUserAPICredentials
NameDescriptionTypeAdditional information
Value

UserAPICredentials

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": {
    "Bearer": "sample string 1",
    "UserId": 2,
    "FullName": "sample string 3"
  },
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseOfUserAPICredentialsLnN1pw8Y xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Value xmlns:d2p1="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
    <d2p1:Bearer>sample string 1</d2p1:Bearer>
    <d2p1:FullName>sample string 3</d2p1:FullName>
    <d2p1:UserId>2</d2p1:UserId>
  </Value>
</Logic4ResponseOfUserAPICredentialsLnN1pw8Y>