|
|
@ -45,7 +45,7 @@ |
|
|
|
$curl = curl_init(); |
|
|
|
$curl = curl_init(); |
|
|
|
|
|
|
|
|
|
|
|
curl_setopt_array($curl, array( |
|
|
|
curl_setopt_array($curl, array( |
|
|
|
CURLOPT_URL => 'control.local/api/v2/service/12345/rescue', |
|
|
|
CURLOPT_URL => 'https://api.dsh.gg/api/v2/service/12345/rescue', |
|
|
|
CURLOPT_CUSTOMREQUEST => 'POST', |
|
|
|
CURLOPT_CUSTOMREQUEST => 'POST', |
|
|
|
CURLOPT_POSTFIELDS =>'{ |
|
|
|
CURLOPT_POSTFIELDS =>'{ |
|
|
|
"rootpass": "1qQertzuiopas!d" |
|
|
|
"rootpass": "1qQertzuiopas!d" |
|
|
@ -64,7 +64,7 @@ echo $response; |
|
|
|
|
|
|
|
|
|
|
|
##### cURL |
|
|
|
##### cURL |
|
|
|
```bash |
|
|
|
```bash |
|
|
|
curl --location --request POST 'control.local/api/v2/service/12345/rescue' \ |
|
|
|
curl --location --request POST 'https://api.dsh.gg/api/v2/service/12345/rescue' \ |
|
|
|
--header 'X-TOKEN: test-token' \ |
|
|
|
--header 'X-TOKEN: test-token' \ |
|
|
|
--header 'Content-Type: application/json' \ |
|
|
|
--header 'Content-Type: application/json' \ |
|
|
|
--data-raw '{ |
|
|
|
--data-raw '{ |
|
|
|