Section W - Accounts API

W1 - Get account details

GET Method :

/api/v1/get_account_details/< accountId>

Input :

Argument Mandatory Value
accountId No String

Sample Output :

[ {
"accountId":"local3",
"accountName":"local3",
"apiKey":"cddb0d8f0da027aea083f75d16",
"companyName":"jazenetworks1",
"parentAccountId":"local1",
"dateCreated":"2016-09-23 13:42:30"
},
{
"accountId":"local1",
"accountName":"local1",
"apiKey":"4be9491968d7270a73233713",
"companyName":"jazenetworks1",
"parentAccountId":"jazenetworks",
"dateCreated":"2016-09-23 12:44:22"
} ]

W2 - Get sub acconts api details

GET Method :

/api/v1/get_sub_account_apis

Sample Output :

{
 "status": "success",
 "errorCode" = 200,
 "message": [
 {
 "Account": {
 "company_name": "ABC Technologies",
 "api_token": "abctech",
 "api_key": "87bef06b612c39d6b8315f90ed0248bdd96903ef"
 }
 },
 {
 "Account": {
 "company_name": "XYZ Technologies",
 "api_token": "xyztech",
 "api_key": "c3f1eee7fb1553533c7c6ed8624373465d9ec17a"
 }
 }
 ] }

W3 - Get all admins

To do get all admin name and ID send a GET request to /api/v1/ get_all_admins

Sample Output :

[
 {
 "Admin": {
 "id": "2",
 "name": "testing",
 "username": "testing",
 "email": "[email protected]",
 }
 },
 {
 "Admin": {
 "id": "11",
 "name": "admin1",
 "username": "admin",
 "email": "[email protected]",
 }
 } ]