|
|
@ -46,13 +46,13 @@ $curl = curl_init(); |
|
|
|
curl_setopt_array($curl, array( |
|
|
|
curl_setopt_array($curl, array( |
|
|
|
CURLOPT_URL => 'control.local/api/v2/order', |
|
|
|
CURLOPT_URL => 'control.local/api/v2/order', |
|
|
|
CURLOPT_CUSTOMREQUEST => 'GET', |
|
|
|
CURLOPT_CUSTOMREQUEST => 'GET', |
|
|
|
CURLOPT_POSTFIELDS =>'{ |
|
|
|
CURLOPT_POSTFIELDS =>'{ |
|
|
|
"paymentmethod": "paypal", |
|
|
|
"paymentmethod": "paypal", |
|
|
|
"pid": [1,2], |
|
|
|
"pid": [1,2], |
|
|
|
"billingcycle": ["monthly", "monthly"], |
|
|
|
"billingcycle": ["monthly", "monthly"], |
|
|
|
"hostname": ["a.server.de", "b.server.de"], |
|
|
|
"hostname": ["a.server.de", "b.server.de"], |
|
|
|
"rootpw": ["passwort-server-a", "password-server-b"] |
|
|
|
"rootpw": ["passwort-server-a", "password-server-b"] |
|
|
|
}' |
|
|
|
}', |
|
|
|
CURLOPT_HTTPHEADER => array( |
|
|
|
CURLOPT_HTTPHEADER => array( |
|
|
|
'X-TOKEN: test-token', |
|
|
|
'X-TOKEN: test-token', |
|
|
|
'Content-Type: application/json' |
|
|
|
'Content-Type: application/json' |
|
|
|