From 76771752262e40fa41c189bbac761de9fb5eb1e0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 6 Apr 2015 13:35:50 +0000 Subject: preparing set avatar git-svn-id: http://svn.miranda-ng.org/main/trunk@12629 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/requests/avatars.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'protocols/SkypeWeb') 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_ -- cgit v1.2.3