List Members
List Members
GET
https://api.ocamba.com/v2/ocamba/members
Members function returns details of the selected membersQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/ocamba/members" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/ocamba/members';
const options = {
method: 'GET',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/ocamba/members");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
200 OK
{
"total": 29,
"items": [
{
"id": "1000163",
"name": "John Doe",
"status": "active",
"email": "[email protected]",
"create_time": "2021-07-30T12:50:13Z",
"update_time": "2021-07-30T12:50:13Z"
},
{
"id": "1000006",
"name": "Jane Doe",
"status": "active",
"email": "[email protected]",
"create_time": "2020-08-28T11:29:48Z",
"update_time": "2021-04-15T17:13:59Z"
},
{
"id": "1000005",
"name": "Johnny Doe",
"status": "active",
"email": "[email protected]",
"image": "https://storage.ocamba.com/6197120/members/1000005/image/jonny.png"
}
]
}
Responses