diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-06 13:35:50 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-06 13:35:50 +0000 |
commit | 76771752262e40fa41c189bbac761de9fb5eb1e0 (patch) | |
tree | cd66d04ac87a5dfbe31182920120fdf080fb5ad7 /protocols/SkypeWeb | |
parent | 1a671426f048eb2f35cb1bbd0552de37130fbc06 (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')
-rw-r--r-- | protocols/SkypeWeb/src/requests/avatars.h | 15 |
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_
|