API docs
The API follows the DHRU Fusion format: most software written for DHRU works after changing the address, username and key. Key and IP restriction are on the profile page. The API is enabled for your account by an administrator.
Request
POST https://ic.gsmsource.net/api/index.php, fields as form-data:
| Field | Meaning |
|---|---|
username | Account username |
apiaccesskey | API key |
action | Action name (below) |
parameters[...] | Parameters for the action (XML is accepted too) |
Tezlik chegarasi: daqiqasiga 300 items so'rov.
Response
{"SUCCESS":[{"MESSAGE":"...", ...}],"apiversion":"8.1"}
{"ERROR":[{"MESSAGE":"..."}],"apiversion":"8.1"}
Actions
| action | Parameters | Result |
|---|---|---|
accountinfo | — | Balance, email |
imeiservicelist | — | Services by group and your price |
placeimeiorder | ID, IMEI | REFERENCEID |
bulkimeiorder | ID, IMEI (list, up to 1000) | For each IMEI, REFERENCEID or an error |
getimeiorder | ID (REFERENCEID) | STATUS, CODE |
bulkgetimeiorder | ID (comma-separated list) | List of orders |
Status codes
| STATUS | Meaning |
|---|---|
0 | Pending |
1 | Processing |
3 | Rejected |
4 | Completed |
Money for a rejected order is refunded to your balance automatically.
Example
curl -X POST https://ic.gsmsource.net/api/index.php \
-d username=LOGIN -d apiaccesskey=KALIT \
-d action=placeimeiorder \
-d "parameters[ID]=12" -d "parameters[IMEI]=356938035643809"