POST message/send_text

Request Information

URI Parameters

None.

Body Parameters

SendTextViewModel
NameDescriptionTypeAdditional information
receiver_user_id

integer

Required

text

string

Required

sender_user_name

string

None.

sender_head_image_path

string

None.

receiver_user_name

string

None.

receiver_head_image_path

string

None.

ext

string

None.

time_offset

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "receiver_user_id": 1,
  "text": "sample string 2",
  "sender_user_name": "sample string 3",
  "sender_head_image_path": "sample string 4",
  "receiver_user_name": "sample string 5",
  "receiver_head_image_path": "sample string 6",
  "ext": "sample string 7",
  "time_offset": 8
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DataResponseOfMessageViewModel
NameDescriptionTypeAdditional information
code

integer

None.

message

string

None.

success

boolean

None.

data

MessageViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "message": "sample string 2",
  "success": true,
  "data": {
    "message_id": 1,
    "message_type_id": 2,
    "message_type_group_id": 3,
    "chat_type_id": 4,
    "sender_user_id": 5,
    "receiver_user_id": 6,
    "redirect_id": 7,
    "title": "sample string 8",
    "sub_title": "sample string 9",
    "ext": "sample string 10",
    "note": "sample string 11",
    "photo_path": "sample string 12",
    "photo_width": 13,
    "photo_height": 14,
    "photo_size": 15,
    "voice_path": "sample string 16",
    "voice_length": 17,
    "location_latitude": "sample string 18",
    "location_longitude": "sample string 19",
    "location_address": "sample string 20",
    "location_map_path": "sample string 21",
    "show_time": true,
    "date_created": "sample string 23",
    "sender_user_name": "sample string 24",
    "sender_head_image_path": "sample string 25",
    "target_user_name": "sample string 26",
    "target_head_image_path": "sample string 27",
    "time_offset": 28
  }
}