You can programatically create sub-accounts by generating new API keys associated with your account.
URL for POST Request: http://analytics.humbuglabs.org/index.php/remote_api/api_remote_create_keys/
Sample API Creation POST Request:
key=asoiufb9av8h9ahaq9vh98ahvaspdfiouaba8sy7f&salt=1981938447&friendly_name=myPBX
Response: (JSON Formatted)
You will receive a JSON response providing you a new API key and Encryption key associated to your account, for example:
{"result":true,"msg":"OK","new_apikey":"db0cbd...","new_hkey":"30a401..."}
{"result":true,"msg":"OK","new_apikey":"db0cbd...","new_hkey":"30a401..."}
Programatically remove sub-accounts from your account.
URL for POST Request: http://analytics.humbuglabs.org/index.php/remote_api/remote_del_apikey/
Sample API Deletion POST Request:
key=asoiufb9av8h9ahaq9vh98ahvaspdfiouaba8sy7f&salt=1981938447&apikey_ident=sd89f7hf0as978fg2s9f8h2as8f7gas0
Response: (JSON Formatted)
You will receive a JSON response:
{"result":true,"msg":"OK"}
{"result":true,"msg":"OK"}
