GET api/GetAuthenticationToken?UserName={UserName}&Password={Password}&SessionID={SessionID}&IPAddress={IPAddress}&ApplicationID={ApplicationID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UserName

string

Required

Password

string

Required

SessionID

string

Required

IPAddress

string

Required

ApplicationID

integer

Required

Body Parameters

None.

Response Information

Resource Description

TokenInfo
NameDescriptionTypeAdditional information
authentication

string

None.

user_id

integer

None.

user_name

string

None.

first_name

string

None.

last_name

string

None.

email_address

string

None.

mobile_number

string

None.

usertype_id

integer

None.

usersource_id

integer

None.

profile_image

string

None.

session_id

string

None.

is_created

boolean

None.

school_id

integer

None.

purchase_info

Collection of PurchaseInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "authentication": "sample string 1",
  "user_id": 2,
  "user_name": "sample string 3",
  "first_name": "sample string 4",
  "last_name": "sample string 5",
  "email_address": "sample string 6",
  "mobile_number": "sample string 7",
  "usertype_id": 8,
  "usersource_id": 9,
  "profile_image": "sample string 10",
  "session_id": "sample string 11",
  "is_created": true,
  "school_id": 13,
  "purchase_info": [
    {
      "$id": "2",
      "application_id": 1,
      "board_id": 2,
      "class_id": 3,
      "subject_ids": "sample string 4",
      "course_id": 5,
      "exam_id": 6
    },
    {
      "$ref": "2"
    }
  ]
}

application/xml, text/xml

Sample:
<TokenInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalStudentServices.Models">
  <authentication>sample string 1</authentication>
  <email_address>sample string 6</email_address>
  <first_name>sample string 4</first_name>
  <is_created>true</is_created>
  <last_name>sample string 5</last_name>
  <mobile_number>sample string 7</mobile_number>
  <profile_image>sample string 10</profile_image>
  <purchase_info>
    <PurchaseInfo>
      <application_id>1</application_id>
      <board_id>2</board_id>
      <class_id>3</class_id>
      <course_id>5</course_id>
      <exam_id>6</exam_id>
      <subject_ids>sample string 4</subject_ids>
    </PurchaseInfo>
    <PurchaseInfo>
      <application_id>1</application_id>
      <board_id>2</board_id>
      <class_id>3</class_id>
      <course_id>5</course_id>
      <exam_id>6</exam_id>
      <subject_ids>sample string 4</subject_ids>
    </PurchaseInfo>
  </purchase_info>
  <school_id>13</school_id>
  <session_id>sample string 11</session_id>
  <user_id>2</user_id>
  <user_name>sample string 3</user_name>
  <usersource_id>9</usersource_id>
  <usertype_id>8</usertype_id>
</TokenInfo>