GET api/trustedorg/members/goal/{id}?gid={gid}

goals set by trusted organization member like dietitian/coach/fitness expert

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

object representing the details that need to get goals set by dietitian/coach/fitness expert

integer

Required

gid

object representing the details that need to get goals

string

Required

Body Parameters

None.

Response Information

Resource Description

On success, returns List of orgs member On failure, return Lifetrons standard responses codes.

OrgMemberGoalResp
NameDescriptionTypeAdditional information
goal

goals details like daily steps,cal,distance,water intake etc

Goals

None.

resp_code

Lifetrons response code

string

None.

resp_msg

Lifetrons response message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "goal": {
    "goal_id": "sample string 1",
    "user_id": 2,
    "org_member_id": 3,
    "goal_type": "sample string 4",
    "steps": 5,
    "weight": 6.0,
    "water_intake": 7.0,
    "calories": 8,
    "distance": 9.0,
    "sleep": 10,
    "bodyfat": 11,
    "no_of_days_goal": 12,
    "avg_weight_per_week": 13.0,
    "current_weight": 14.0,
    "request_status": "sample string 15",
    "created_on": 17.1,
    "updated_on": 19.1,
    "accepted_on": 21.1
  },
  "resp_code": "sample string 1",
  "resp_msg": "sample string 2"
}

application/xml, text/xml

Sample:
<member_goals xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.ResponseAgg">
  <resp_code xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">sample string 1</resp_code>
  <resp_msg xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">sample string 2</resp_msg>
  <goal xmlns:d2p1="http://schemas.datacontract.org/2004/07/CommonClasses.user">
    <d2p1:accepted_on>21.1</d2p1:accepted_on>
    <d2p1:avg_weight_per_week>13</d2p1:avg_weight_per_week>
    <d2p1:bodyfat>11</d2p1:bodyfat>
    <d2p1:calories>8</d2p1:calories>
    <d2p1:created_on>17.1</d2p1:created_on>
    <d2p1:current_weight>14</d2p1:current_weight>
    <d2p1:distance>9</d2p1:distance>
    <d2p1:goal_id>sample string 1</d2p1:goal_id>
    <d2p1:goal_type>sample string 4</d2p1:goal_type>
    <d2p1:no_of_days_goal>12</d2p1:no_of_days_goal>
    <d2p1:org_member_id>3</d2p1:org_member_id>
    <d2p1:request_status>sample string 15</d2p1:request_status>
    <d2p1:sleep>10</d2p1:sleep>
    <d2p1:steps>5</d2p1:steps>
    <d2p1:updated_on>19.1</d2p1:updated_on>
    <d2p1:user_id>2</d2p1:user_id>
    <d2p1:water_intake>7</d2p1:water_intake>
    <d2p1:weight>6</d2p1:weight>
  </goal>
</member_goals>