POST api/Account/Active?api={api}

Nhận số điện thoại từ facebook Account Kit

Request Information

URI Parameters

NameDescriptionTypeAdditional information
api

Mã API do hệ thống cung cấp

string

Required

Body Parameters

Thông tin kích hoạt tài khoản

ActiveAccount
NameDescriptionTypeAdditional information
countrycode

Mã điện thoại theo quốc gia

string

None.

phone

Số điện thoại

string

None.

devicetoken

Mã Device token để gửi notification Mobile

string

None.

Request Formats

application/json, text/json

Sample:
{
  "countrycode": "sample string 1",
  "phone": "sample string 2",
  "devicetoken": "sample string 3"
}

application/xml, text/xml

Sample:
<ActiveAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Obj">
  <countrycode>sample string 1</countrycode>
  <devicetoken>sample string 3</devicetoken>
  <phone>sample string 2</phone>
</ActiveAccount>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Active
NameDescriptionTypeAdditional information
status

Trạng thái thể hiện xử lý: success (Thành công), error (Lỗi)

string

None.

message

Tin nhắn mô tả lỗi hoặc thành công

string

None.

account

Toàn bộ thông tin tài khoản

Account

None.

token

Thông tin token truy cập API

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "message": "sample string 2",
  "account": {
    "idaccount": 1,
    "devicetoken": "sample string 2",
    "idgroup": "sample string 3",
    "phone": "sample string 4",
    "password": "sample string 5",
    "title": "sample string 6",
    "firstname": "sample string 7",
    "lastname": "sample string 8",
    "fullname": "sample string 9",
    "gender": true,
    "age": 1.1,
    "email": "sample string 10",
    "type": 64,
    "birthday": "2021-07-24T16:35:29.6382168Z",
    "infoaccount": {
      "address": "sample string 1",
      "email": "sample string 2",
      "idcard": "sample string 3",
      "workplace": "sample string 4"
    },
    "infodoctor": {
      "speciality": [
        {
          "iddic": 1,
          "code": "sample string 2",
          "title": "sample string 3"
        },
        {
          "iddic": 1,
          "code": "sample string 2",
          "title": "sample string 3"
        }
      ],
      "diploma": [
        {
          "iddic": 1,
          "code": "sample string 2",
          "title": "sample string 3",
          "fulltitle": "sample string 4",
          "place": "sample string 5",
          "year": 6
        },
        {
          "iddic": 1,
          "code": "sample string 2",
          "title": "sample string 3",
          "fulltitle": "sample string 4",
          "place": "sample string 5",
          "year": 6
        }
      ],
      "language": [
        {
          "idlanguage": "sample string 1",
          "title": "sample string 2",
          "notuse": true,
          "onlyread": true
        },
        {
          "idlanguage": "sample string 1",
          "title": "sample string 2",
          "notuse": true,
          "onlyread": true
        }
      ]
    },
    "inforole": [
      {
        "iddic": 1,
        "parent": 1,
        "iddictype": "sample string 2",
        "code": "sample string 3",
        "title": "sample string 4",
        "dictitle": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "info": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "onlyread": true,
        "notuse": true,
        "datecreate": 5,
        "language": "sample string 6",
        "order": 1
      },
      {
        "iddic": 1,
        "parent": 1,
        "iddictype": "sample string 2",
        "code": "sample string 3",
        "title": "sample string 4",
        "dictitle": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "info": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "onlyread": true,
        "notuse": true,
        "datecreate": 5,
        "language": "sample string 6",
        "order": 1
      }
    ],
    "datecreate": 1,
    "dateactive": 1,
    "datelogin": 1,
    "datesuspended": 1,
    "dateline": 1,
    "active": true,
    "suspended": true,
    "typeaccount": 64
  },
  "token": "sample string 3"
}

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"status":"sample string 1","message":"sample string 2","account":{"idaccount":1,"devicetoken":"sample string 2","idgroup":"sample string 3","phone":"sample string 4","password":"sample string 5","title":"sample string 6","firstname":"sample string 7","lastname":"sample string 8","fullname":"sample string 9","gender":true,"age":1.1,"email":"sample string 10","type":64,"birthday":"2021-07-24T16:35:29.6382168Z","infoaccount":{"address":"sample string 1","email":"sample string 2","idcard":"sample string 3","workplace":"sample string 4"},"infodoctor":{"speciality":[{"iddic":1,"code":"sample string 2","title":"sample string 3"},{"iddic":1,"code":"sample string 2","title":"sample string 3"}],"diploma":[{"iddic":1,"code":"sample string 2","title":"sample string 3","fulltitle":"sample string 4","place":"sample string 5","year":6},{"iddic":1,"code":"sample string 2","title":"sample string 3","fulltitle":"sample string 4","place":"sample string 5","year":6}],"language":[{"idlanguage":"sample string 1","title":"sample string 2","notuse":true,"onlyread":true},{"idlanguage":"sample string 1","title":"sample string 2","notuse":true,"onlyread":true}]},"inforole":[{"iddic":1,"parent":1,"iddictype":"sample string 2","code":"sample string 3","title":"sample string 4","dictitle":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"info":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"onlyread":true,"notuse":true,"datecreate":5,"language":"sample string 6","order":1},{"iddic":1,"parent":1,"iddictype":"sample string 2","code":"sample string 3","title":"sample string 4","dictitle":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"info":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"onlyread":true,"notuse":true,"datecreate":5,"language":"sample string 6","order":1}],"datecreate":1,"dateactive":1,"datelogin":1,"datesuspended":1,"dateline":1,"active":true,"suspended":true,"typeaccount":64},"token":"sample string 3"});

application/xml, text/xml

Sample:
<Active xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Obj">
  <account>
    <active>true</active>
    <age>1.1</age>
    <birthday>2021-07-24T16:35:29.6382168Z</birthday>
    <dateactive>1</dateactive>
    <datecreate>1</datecreate>
    <dateline>1</dateline>
    <datelogin>1</datelogin>
    <datesuspended>1</datesuspended>
    <devicetoken>sample string 2</devicetoken>
    <email>sample string 10</email>
    <firstname>sample string 7</firstname>
    <fullname>sample string 9</fullname>
    <gender>true</gender>
    <idaccount>1</idaccount>
    <idgroup>sample string 3</idgroup>
    <infoaccount>
      <address>sample string 1</address>
      <email>sample string 2</email>
      <idcard>sample string 3</idcard>
      <workplace>sample string 4</workplace>
    </infoaccount>
    <infodoctor>
      <diploma>
        <Diploma>
          <code>sample string 2</code>
          <fulltitle>sample string 4</fulltitle>
          <iddic>1</iddic>
          <place>sample string 5</place>
          <title>sample string 3</title>
          <year>6</year>
        </Diploma>
        <Diploma>
          <code>sample string 2</code>
          <fulltitle>sample string 4</fulltitle>
          <iddic>1</iddic>
          <place>sample string 5</place>
          <title>sample string 3</title>
          <year>6</year>
        </Diploma>
      </diploma>
      <language>
        <Language>
          <idlanguage>sample string 1</idlanguage>
          <notuse>true</notuse>
          <onlyread>true</onlyread>
          <title>sample string 2</title>
        </Language>
        <Language>
          <idlanguage>sample string 1</idlanguage>
          <notuse>true</notuse>
          <onlyread>true</onlyread>
          <title>sample string 2</title>
        </Language>
      </language>
      <speciality>
        <Speciality>
          <code>sample string 2</code>
          <iddic>1</iddic>
          <title>sample string 3</title>
        </Speciality>
        <Speciality>
          <code>sample string 2</code>
          <iddic>1</iddic>
          <title>sample string 3</title>
        </Speciality>
      </speciality>
    </infodoctor>
    <inforole>
      <Dic>
        <code>sample string 3</code>
        <datecreate>5</datecreate>
        <dictitle xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </dictitle>
        <iddic>1</iddic>
        <iddictype>sample string 2</iddictype>
        <info xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </info>
        <language>sample string 6</language>
        <notuse>true</notuse>
        <onlyread>true</onlyread>
        <order>1</order>
        <parent>1</parent>
        <title>sample string 4</title>
      </Dic>
      <Dic>
        <code>sample string 3</code>
        <datecreate>5</datecreate>
        <dictitle xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </dictitle>
        <iddic>1</iddic>
        <iddictype>sample string 2</iddictype>
        <info xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </info>
        <language>sample string 6</language>
        <notuse>true</notuse>
        <onlyread>true</onlyread>
        <order>1</order>
        <parent>1</parent>
        <title>sample string 4</title>
      </Dic>
    </inforole>
    <lastname>sample string 8</lastname>
    <password>sample string 5</password>
    <phone>sample string 4</phone>
    <suspended>true</suspended>
    <title>sample string 6</title>
    <type>64</type>
    <typeaccount>64</typeaccount>
  </account>
  <message>sample string 2</message>
  <status>sample string 1</status>
  <token>sample string 3</token>
</Active>