POST api/Dance/SavaDeviceFriends

Add Friend

Request Information

Body Parameters

DeviceFriendModel
NameDescriptionTypeAdditional information
DeviceId

Device Id

integer

None.

FriendImei

Friend IMEI number

string

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": 1,
  "FriendImei": "sample string 2",
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<DeviceFriendModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <Token>sample string 3</Token>
  <DeviceId>1</DeviceId>
  <FriendImei>sample string 2</FriendImei>
</DeviceFriendModel>

Response Information

Resource Description

Statestatus code
0. Says failure
1. Indicates success
1100. device does not exist

DeviceFriendsResult
NameDescriptionTypeAdditional information
Items

Device friend IMEI

Collection of string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    "sample string 1",
    "sample string 2"
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<DeviceFriendsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Items>
</DeviceFriendsResult>