summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-06 13:35:50 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-06 13:35:50 +0000
commit76771752262e40fa41c189bbac761de9fb5eb1e0 (patch)
treecd66d04ac87a5dfbe31182920120fdf080fb5ad7 /protocols/SkypeWeb/src/requests
parent1a671426f048eb2f35cb1bbd0552de37130fbc06 (diff)
preparing set avatar
git-svn-id: http://svn.miranda-ng.org/main/trunk@12629 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests')
-rw-r--r--protocols/SkypeWeb/src/requests/avatars.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/requests/avatars.h b/protocols/SkypeWeb/src/requests/avatars.h
index 550b4a9e5c..bee522e91f 100644
--- a/protocols/SkypeWeb/src/requests/avatars.h
+++ b/protocols/SkypeWeb/src/requests/avatars.h
@@ -10,4 +10,19 @@ public:
}
};
+class SetAvatarRequest : public HttpRequest
+{
+public:
+ SetAvatarRequest(const char *token, const char *skypename, const char *data) :
+ HttpRequest(REQUEST_PUT, FORMAT, "api.skype.com/users/%s/profile/avatar ", skypename)
+ {
+ Headers
+ << CHAR_VALUE("X-Skypetoken", token)
+ << CHAR_VALUE("Content-Type", "application/json; charset=UTF-8");
+
+ Body << VALUE(data);
+ }
+};
+
+
#endif //_SKYPE_REQUEST_AVATAR_H_