Command: List User DomainsThis api command returns list of domains owned by a specific user. Command:
Required Parameters:
Optional Parameters:Account information will be returnred in a comma separated list format, Additionally these encoddings can also apply to output:
Above encodings can be passed to API in form of encoding_n parameters where n is a number between 1 and 5. For instance if you send encoding_1=gzcompress&encoding_2=base64_encode then these functions will be applied to list:
And if you send encoding_1=base64_encode then you will receive data provided by these functions:
A your end, you may decode the information in reverse order. Note on output:In any form of encoding data will be wrapped by -----DATA-START----- and -----DATA-END----- tags. So to grap the correct data your script can do a preg_match like this: if(preg_match('/-----DATA-START-----(.*)-----DATA-END-----/smiU',$returned_data,$matches)) { $real_data = $matches[1]; // routine to decode the data, i.e: // $data_array = base64_decode(explode(',',$real_data)); } Sample request to send to Say5 api:$request = 'command=list_userdomains&user_name=testuser&encoding_1=base64_encode'; |