Searched refs:_vExtraHeaders (Results 1 – 2 of 2) sorted by relevance
/dports/www/domoticz/domoticz-2020.2/hardware/eVehicles/ |
H A D | TeslaApi.cpp | 345 std::vector<std::string> _vExtraHeaders; in GetAuthToken() local 346 _vExtraHeaders.push_back("Content-Type: application/x-www-form-urlencoded"); in GetAuthToken() 350 if (!SendToApi(Post, _sUrl, sPostData, _sResponse, _vExtraHeaders, _jsRoot, false)) in GetAuthToken() 390 std::vector<std::string> _vExtraHeaders = vExtraHeaders; in SendToApi() local 395 _vExtraHeaders.push_back("Content-Type: application/json"); in SendToApi() 399 _vExtraHeaders.push_back("Authorization: Bearer " + m_authtoken); in SendToApi() 411 if (!HTTPClient::POST(sUrl, sPostData, _vExtraHeaders, sResponse, _vResponseHeaders)) in SendToApi() 421 if (!HTTPClient::GET(sUrl, _vExtraHeaders, sResponse, _vResponseHeaders)) in SendToApi()
|
/dports/www/domoticz/domoticz-2020.2/hardware/ |
H A D | Tado.cpp | 233 std::vector<std::string> _vExtraHeaders; in GetAuthToken() local 234 _vExtraHeaders.push_back("Content-Type: application/x-www-form-urlencoded"); in GetAuthToken() 241 SendToTadoApi(Post, _sUrl, sPostData, _sResponse, _vExtraHeaders, _jsRoot, true, false, false); in GetAuthToken() 880 std::vector<std::string> _vExtraHeaders = vExtraHeaders; in SendToTadoApi() local 886 _vExtraHeaders.push_back("Content-Type: application/json"); in SendToTadoApi() 891 if (bSendAuthHeaders) _vExtraHeaders.push_back("Authorization: Bearer " + m_TadoAuthToken); in SendToTadoApi() 899 if (!HTTPClient::PUT(sUrl, sPostData, _vExtraHeaders, sResponse, bIgnoreEmptyResponse)) in SendToTadoApi() 907 …if (!HTTPClient::POST(sUrl, sPostData, _vExtraHeaders, sResponse, _vResponseHeaders, true, bIgnore… in SendToTadoApi() 916 if (!HTTPClient::GET(sUrl, _vExtraHeaders, sResponse, _vResponseHeaders, bIgnoreEmptyResponse)) in SendToTadoApi() 925 if (!HTTPClient::Delete(sUrl, sPostData, _vExtraHeaders, sResponse, bIgnoreEmptyResponse)) { in SendToTadoApi()
|