POST message/send_photo
Request Information
URI Parameters
None.
Body Parameters
SendPhotoViewModelName | Description | Type | Additional information |
---|---|---|---|
receiver_user_id | integer |
Required |
|
path | string |
Required |
|
photo_width | integer |
Required |
|
photo_height | integer |
Required |
|
photo_size | integer |
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, "path": "sample string 2", "photo_width": 3, "photo_height": 4, "photo_size": 5, "sender_user_name": "sample string 6", "sender_head_image_path": "sample string 7", "receiver_user_name": "sample string 8", "receiver_head_image_path": "sample string 9", "ext": "sample string 10", "time_offset": 11 }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DataResponseOfMessageViewModelName | Description | Type | Additional 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 } }