POST api/notifications/mealphoto
send meal photo notification
Request Information
URI Parameters
None.
Body Parameters
meal photo notification data
MealPhotoNotifReqName | Description | Type | Additional information |
---|---|---|---|
title |
notification title |
string |
Required |
body |
notification body |
string |
Required |
user_id |
org unique identification id |
integer |
Required |
org_id |
org unique identification id |
integer |
Required |
org_member_id |
org member id. Logged in person id |
integer |
Required |
mapping_id |
mapping id of Lifetrons user and org member |
string |
None. |
meal_photo_id |
Meal photo Id |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "title": "sample string 1", "body": "sample string 2", "user_id": 3, "org_id": 4, "org_member_id": 5, "mapping_id": "sample string 6", "meal_photo_id": "sample string 7" }
application/xml, text/xml
Sample:
<meal_photo_notif_req xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg"> <body>sample string 2</body> <mapping_id>sample string 6</mapping_id> <meal_photo_id>sample string 7</meal_photo_id> <org_id>4</org_id> <org_member_id>5</org_member_id> <title>sample string 1</title> <user_id>3</user_id> </meal_photo_notif_req>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
On success, return Lifetrons standard response On failure, return null
ResponseName | Description | Type | Additional information |
---|---|---|---|
resp_code |
Lifetrons response code |
string |
None. |
resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "resp_code": "sample string 1", "resp_msg": "sample string 2" }
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models"> <resp_code>sample string 1</resp_code> <resp_msg>sample string 2</resp_msg> </Response>