no message
This commit is contained in:
@@ -431,7 +431,7 @@ class Ladestation_v2 extends IPSModule
|
|||||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||||
CURLOPT_CUSTOMREQUEST => "GET",
|
CURLOPT_CUSTOMREQUEST => "GET",
|
||||||
CURLOPT_HTTPHEADER => [
|
CURLOPT_HTTPHEADER => [
|
||||||
"Authorization: Bearer ".$this->GetValue("Token_Intern")."",
|
"Authorization: Bearer ".$this->GetBuffer("Token_Intern")."",
|
||||||
"content-type: application/*+json"
|
"content-type: application/*+json"
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
@@ -712,7 +712,7 @@ class Ladestation_v2 extends IPSModule
|
|||||||
CURLOPT_CUSTOMREQUEST => "POST",
|
CURLOPT_CUSTOMREQUEST => "POST",
|
||||||
CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":0}",
|
CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":0}",
|
||||||
CURLOPT_HTTPHEADER => [
|
CURLOPT_HTTPHEADER => [
|
||||||
"Authorization: Bearer ".$this->GetValue("Token_Intern")."",
|
"Authorization: Bearer ".$this->GetBuffer("Token_Intern")."",
|
||||||
"content-type: application/*+json"
|
"content-type: application/*+json"
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
@@ -775,7 +775,7 @@ class Ladestation_v2 extends IPSModule
|
|||||||
CURLOPT_CUSTOMREQUEST => "POST",
|
CURLOPT_CUSTOMREQUEST => "POST",
|
||||||
CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":0}",
|
CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":0}",
|
||||||
CURLOPT_HTTPHEADER => [
|
CURLOPT_HTTPHEADER => [
|
||||||
"Authorization: Bearer ".$this->GetValue("Token_Intern")."",
|
"Authorization: Bearer ".$this->GetBuffer("Token_Intern")."",
|
||||||
"content-type: application/*+json"
|
"content-type: application/*+json"
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
@@ -841,7 +841,7 @@ class Ladestation_v2 extends IPSModule
|
|||||||
|
|
||||||
// cURL-Handle schließen
|
// cURL-Handle schließen
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
$this->SetValue("Token_Intern", json_decode($response['accessToken']));
|
$this->SetBuffer("Token_Intern", json_decode($response)['accessToken']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user