summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb')
-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_