GET /admin/companies/{company_id}/members
GET /api/v1/admin/companies/2/members HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b
data
: array[object]
id
: intfirst_name
: stringlast_name
: stringemail
: stringtelephone_number
: stringmobile_number
: stringis_active
: boolis_enabled
: boollast_login
: string ("2020-12-31 00:00:00"
)created_at
: string ("2020-12-31 00:00:00+00:00"
)roles
: object
data
: object
id
: intname
: stringmeta
: object
first_url
: stringlast_url
: stringnext_url
: stringprevious_url
: stringtotal
: intper_page
: intcurrent_page
: intlast_page
: intfrom
: intto
: int{
"data":[
{
"id":1,
"first_name":"Reseller Admin",
"last_name":"Example",
"email":"reselleradmin@example.com",
"telephone_number":null,
"mobile_number":null,
"is_active":true,
"is_enabled":true,
"last_login":"2018-04-25 14:57:11",
"created_at":"2018-04-11T10:10:17+00:00",
"roles":{
"data":{
"id":4,
"name":"Reseller Admin"
}
}
},
{
"id":3,
"first_name":"Reseller Staff",
"last_name":"Example",
"email":"resellerstaff@example.com",
"telephone_number":null,
"mobile_number":null,
"is_active":true,
"is_enabled":true,
"last_login":null,
"created_at":"2018-04-11T10:10:17+00:00",
"roles":{
"data":{
"id":5,
"name":"Reseller Staff"
}
}
}
],
"meta": {
"first_url": "https://tph.io/api/v1/admin/companies/2/members",
"last_url": "https://tph.io/api/v1/admin/companies/2/members?page=1",
"next_url": "https://tph.io/api/v1/admin/companies/2/members?page=1",
"previous_url": "https://tph.io/api/v1/admin/companies/2/members?page=1",
"total": 2,
"per_page": 50,
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 2
}
}