POST Client/Trial/{SystemLanguageId}

Get the number of allowed trials before registration for a given device. If there is, the system automatically generate a security Token for future access. If applicable, it will also return the information (LanguageList) entered during previous trials on the device

Request Information

URI Parameters

NameDescriptionTypeAdditional information
SystemLanguageId

Current System LanguageId

integer

Required

Body Parameters

The device information

ParaDevice
NameDescriptionTypeAdditional information
DeviceTypeCodeId

integer

None.

AppleDevice

ParaAppleDevice

None.

AndroidDevice

ParaAndroidDevice

None.

WEYIDevice

ParaWEYIDevice

None.

FCMDevice

ParaFCMDevice

None.

CountryCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceTypeCodeId": 1,
  "AppleDevice": {
    "AppleDeviceToken": "sample string 1"
  },
  "AndroidDevice": {
    "AndroidDeviceToken": "sample string 1"
  },
  "WEYIDevice": {
    "WEYIDeviceToken": "sample string 1"
  },
  "FCMDevice": {
    "FCMDeviceToken": "sample string 1"
  },
  "CountryCode": "sample string 2"
}

application/xml, text/xml

Sample:
<ParaDevice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
  <AndroidDevice>
    <AndroidDeviceToken>sample string 1</AndroidDeviceToken>
  </AndroidDevice>
  <AppleDevice>
    <AppleDeviceToken>sample string 1</AppleDeviceToken>
  </AppleDevice>
  <CountryCode>sample string 2</CountryCode>
  <DeviceTypeCodeId>1</DeviceTypeCodeId>
  <FCMDevice>
    <FCMDeviceToken>sample string 1</FCMDeviceToken>
  </FCMDevice>
  <WEYIDevice>
    <WEYIDeviceToken>sample string 1</WEYIDeviceToken>
  </WEYIDevice>
</ParaDevice>

Response Information

Resource Description

ResultTrialWithoutRegistration

ResultTrialWithoutRegistration
NameDescriptionTypeAdditional information
GlobalServerId

integer

None.

Id

integer

None.

AllowedTrialCnt

integer

None.

Token

string

None.

LanguageList

Collection of ResultPersonLanguage

None.

NewURL

string

None.

Response Formats

application/json, text/json

Sample:
{
  "GlobalServerId": 1,
  "Id": 1,
  "AllowedTrialCnt": 1,
  "Token": "sample string 2",
  "LanguageList": [
    {
      "LanguageId": 1,
      "LanguageName": "sample string 2",
      "ProficiencyCodeId": 3,
      "Proficiency": "sample string 4"
    },
    {
      "LanguageId": 1,
      "LanguageName": "sample string 2",
      "ProficiencyCodeId": 3,
      "Proficiency": "sample string 4"
    }
  ],
  "NewURL": "sample string 3"
}

application/xml, text/xml

Sample:
<ResultTrialWithoutRegistration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
  <AllowedTrialCnt>1</AllowedTrialCnt>
  <GlobalServerId>1</GlobalServerId>
  <Id>1</Id>
  <LanguageList>
    <ResultPersonLanguage>
      <LanguageId>1</LanguageId>
      <LanguageName>sample string 2</LanguageName>
      <Proficiency>sample string 4</Proficiency>
      <ProficiencyCodeId>3</ProficiencyCodeId>
    </ResultPersonLanguage>
    <ResultPersonLanguage>
      <LanguageId>1</LanguageId>
      <LanguageName>sample string 2</LanguageName>
      <Proficiency>sample string 4</Proficiency>
      <ProficiencyCodeId>3</ProficiencyCodeId>
    </ResultPersonLanguage>
  </LanguageList>
  <NewURL>sample string 3</NewURL>
  <Token>sample string 2</Token>
</ResultTrialWithoutRegistration>