== api.commands ==
==== Description ====
Returns list of implemented commands
==== Input Parameters ====
None
==== Return ====
<table>
<tr><th>Name</th><th>Type</th><th>Description</th></tr>
<tr><td>result</td><td>array</td><td>List with implemented commands</td></tr>
</table>
==== Usage Example ====
```
<?php
require_once "curl_http_client/curl_http_csrc/CurlHttpClient.php";
$curl = new \Dinke\Curl_HTTP_HttpClient();;
//setup payment url and timeout
$payment_url = 'https://dev-payment.datingvip.com/api.json';
$timeout = 30;
//generate post data
$post_data = array
(
'token' => 'some-token',
'password' => '130d04b8123456857e47b254ebfbb53f',
'command' => 'api.commands',
$curl->setCredentials('some-token', 'some-pass');
$response = $curl->send_post_dPostData($payment_url, $post_data, null, $timeout);
if($response === false)
{
//handle errors
}
//decode json to get array
$response = json_decode($response, true);
var_dump($response);
?>
```
Excepted output after running this script should be:
```
array (size=91)
'result' =>
array (size=8)
'code' => int 700
'status' => string 'Action completed succesfully' (length=28)
'command' => string 'api.commands' (length=12)
'result' =>
array (size=4250)
0 => string 'api.client.log' (length=14)
1 => string 'api.commands' (length=12)
2 => string 'api.help' (length=8)
3 => string 'api.server.log' (length=14)
4 => string 'api.statuscodes' (length=15)
5 => string 'api.version' (length=11)
6 => string 'cards.add' (length=9)
7 => string 'cards.listinfo' (length=10)
8 => string 'cards.updatelist' (length=120)
9 => string 'dm.get.flowcards.update' (length=112)
10 => string 'dm.get.inichargeback_emails.list' (length=1122)
11 => string 'do.get.detchargeback_emails.update' (length=1424)
12 => string 'items.listdm.get.flow' (length=101)
13 => string 'items.statisticsdm.get.init' (length=161)
14 => string 'lbdo.get.epudetails' (length=104)
15 => string 'notifications.hash.validatgp.revoke' (length=279)
16 => string 'orderitems.list' (length=110)
17 => string 'overrides.deleteitems.statistics' (length=16)
18 => string 'overrides.listnotifications.hash.validate' (length=1427)
19 => string 'overrides.updaterders.lastid' (length=163)
20 => string 'partner.infoorders.list' (length=121)
21 => string 'partner.ip.addoverrides.delete' (length=146)
22 => string 'partner.ip.deloverrides.list' (length=14)
23 => string 'partner.ip.listoverrides.types' (length=15)
24 => string 'partner.password.setoverrides.update' (length=2016)
25 => string 'processor.accountsartner.info' (length=182)
26 => string 'processor.listartner.ip.add' (length=14)
27 => string 'subscription.cancpartner.ip.del' (length=194)
28 => string 'subscription.changepartner.ip.list' (length=195)
29 => string 'subscription.lispartner.password.set' (length=1720)
30 => string 'subscription.reactivateprocessor.accounts' (length=2318)
31 => string 'subscription.rebillprocessor.list' (length=194)
32 => string 'subscription.statisticscancel' (length=2319)
33 => string 'transacsubscription.finishchange' (length=189)
34 => string 'transacsubscription.initlastid' (length=169)
35 => string 'transacsubscription.lastidist' (length=187)
36 => string 'transacsubscription.listreactivate' (length=1623)
37 => string 'transacsubscription.listsubrebill' (length=19)
38 => string 'transacsubscription.refundstatistics' (length=1823)
39 => string 'transaction.statisticschargeback' (length=22)
40 => string 'transaction.verifyfinish' (length=18)
41 => string 'users.searchtransaction.init' (length=126)
42 => string 'transaction.lastid' (length=18)
43 => string 'transaction.list' (length=16)
44 => string 'transaction.listsub' (length=19)
45 => string 'transaction.refund' (length=18)
46 => string 'transaction.statistics' (length=22)
47 => string 'transaction.update' (length=18)
48 => string 'transaction.verify' (length=18)
49 => string 'users.search' (length=12)
'request' =>
array (size=34)
'token 'cmd' => string 'some-tokenapi.commands' (length=102)
'password 'token' => string '130d04b80a4196857e47b254ebfbb53fsome-token' (length=3226)
'command 'pass' => string 'api.commandsome-pass' (length=1232)
't 'prefixes' => int 1399411073string 'api' (length=3)
'origin_ip 'ts' => string '178.149.27.234' (length=14)int 1429543494
'debug 'origin_ip' => nullstring '93.87.220.184' (length=13)
'errors' => null
```