diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-15 13:10:56 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-15 13:10:56 +0000 |
commit | 9c4370db4f2e5f5ee77e03a8c5c4c1e226274768 (patch) | |
tree | e6b9936fb28e85ec702d03ff8db294d2b2f50c15 /protocols/SkypeWeb/src/requests/trouter.h | |
parent | de6edc08ee0c1faffb6456abc31fc9bd8a5b0e32 (diff) |
SkypeWeb: refactoring part 1
git-svn-id: http://svn.miranda-ng.org/main/trunk@14960 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/trouter.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/trouter.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/requests/trouter.h b/protocols/SkypeWeb/src/requests/trouter.h index 37cacc8c92..0f8cd6e8d2 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(const char *token, const char *sr) :
+ CreateTrouterPoliciesRequest(LoginInfo &li, 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", token);
+ << CHAR_VALUE("X-Skypetoken", li.api.szToken);
JSONNode node;
node << JSONNode("sr", sr);
@@ -48,12 +48,12 @@ public: class RegisterTrouterRequest : public HttpRequest
{
public:
- RegisterTrouterRequest(const char *token, const char *trouterUrl, const char *id) :
+ RegisterTrouterRequest(LoginInfo &li, 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", token);
+ << CHAR_VALUE("X-Skypetoken", li.api.szToken);
JSONNode clientDescription; clientDescription.set_name("clientDescription");
clientDescription
|