summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/avatars.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-15 13:10:56 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-15 13:10:56 +0000
commit9c4370db4f2e5f5ee77e03a8c5c4c1e226274768 (patch)
treee6b9936fb28e85ec702d03ff8db294d2b2f50c15 /protocols/SkypeWeb/src/requests/avatars.h
parentde6edc08ee0c1faffb6456abc31fc9bd8a5b0e32 (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/avatars.h')
-rw-r--r--protocols/SkypeWeb/src/requests/avatars.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/requests/avatars.h b/protocols/SkypeWeb/src/requests/avatars.h
index dd8f970dd4..23be77bee1 100644
--- a/protocols/SkypeWeb/src/requests/avatars.h
+++ b/protocols/SkypeWeb/src/requests/avatars.h
@@ -30,11 +30,11 @@ public:
class SetAvatarRequest : public HttpRequest
{
public:
- SetAvatarRequest(const char *token, const char *skypename, const char *data, size_t dataSize) :
- HttpRequest(REQUEST_PUT, FORMAT, "api.skype.com/users/%s/profile/avatar", skypename)
+ SetAvatarRequest(const char *data, size_t dataSize, LoginInfo &li) :
+ HttpRequest(REQUEST_PUT, FORMAT, "api.skype.com/users/%s/profile/avatar", li.szSkypename)
{
Headers
- << CHAR_VALUE("X-Skypetoken", token)
+ << CHAR_VALUE("X-Skypetoken", li.api.szToken)
<< CHAR_VALUE("Content-Type", "image/jpeg");
pData = (char*)mir_alloc(dataSize);