mirror of
https://github.com/envoyr/php-froxlor-client.git
synced 2026-04-30 13:14:05 +00:00
Compare commits
3 Commits
0.10.38
...
2.0.10-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| 63d68d8921 | |||
| 6f2b651a70 | |||
| a5f3d3d0fd |
@@ -36,18 +36,15 @@ class Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
$payload = [
|
$payload = [
|
||||||
'header' => [
|
|
||||||
'apikey' => $this->apiKey,
|
|
||||||
'secret' => $this->apiSecret,
|
|
||||||
],
|
|
||||||
'body' => [
|
|
||||||
'command' => $command,
|
'command' => $command,
|
||||||
'params' => $attributes
|
'params' => $attributes
|
||||||
]
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$token = base64_encode(sprintf('%s:%s', $this->apiKey, $this->apiSecret));
|
||||||
|
|
||||||
$response = $this->client->post("api.php", [
|
$response = $this->client->post("api.php", [
|
||||||
'headers' => [
|
'headers' => [
|
||||||
|
'Authorization' => 'Basic ' . $token,
|
||||||
'Content-Type' => 'application/json',
|
'Content-Type' => 'application/json',
|
||||||
],
|
],
|
||||||
'body' => json_encode($payload)
|
'body' => json_encode($payload)
|
||||||
|
|||||||
Reference in New Issue
Block a user