summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/trouter.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-07-12 19:20:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-12 19:20:45 +0300
commitc311534fbf724850cbd8555a9e57f67b3096d7a0 (patch)
tree73105ae67eebae560f162a90a194016e4d06565c /protocols/SkypeWeb/src/requests/trouter.h
parent75ac9efb6ed49795e21796419fcf8759c0d859dd (diff)
SkypeWeb:
- fixes #2002 (Skype caches wrong server data); - unused structure removed; - version bump
Diffstat (limited to 'protocols/SkypeWeb/src/requests/trouter.h')
-rw-r--r--protocols/SkypeWeb/src/requests/trouter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/requests/trouter.h b/protocols/SkypeWeb/src/requests/trouter.h
index 7373a4ec57..cca90d1ed7 100644
--- a/protocols/SkypeWeb/src/requests/trouter.h
+++ b/protocols/SkypeWeb/src/requests/trouter.h
@@ -30,13 +30,13 @@ public:
class CreateTrouterPoliciesRequest : public HttpRequest
{
public:
- CreateTrouterPoliciesRequest(LoginInfo &li, const char *sr) :
+ CreateTrouterPoliciesRequest(CSkypeProto *ppro, const char *sr) :
HttpRequest(REQUEST_POST, FORMAT, "prod.tpc.skype.com/v1/policies")
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")
<< CHAR_VALUE("Content-Type", "application/json; charset=UTF-8")
- << CHAR_VALUE("X-Skypetoken", li.api.szToken);
+ << CHAR_VALUE("X-Skypetoken", ppro->m_szApiToken);
JSONNode node;
node << JSONNode("sr", sr);
@@ -48,12 +48,12 @@ public:
class RegisterTrouterRequest : public HttpRequest
{
public:
- RegisterTrouterRequest(LoginInfo &li, const char *trouterUrl, const char *id) :
+ RegisterTrouterRequest(CSkypeProto *ppro, const char *trouterUrl, const char *id) :
HttpRequest(REQUEST_POST, "prod.registrar.skype.com/v2/registrations")
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript, text/html,application/xhtml+xml, application/xml")
- << CHAR_VALUE("X-Skypetoken", li.api.szToken);
+ << CHAR_VALUE("X-Skypetoken", ppro->m_szApiToken);
JSONNode clientDescription; clientDescription.set_name("clientDescription");
clientDescription