summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/status.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/requests/status.h')
-rw-r--r--protocols/SkypeWeb/src/requests/status.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/requests/status.h b/protocols/SkypeWeb/src/requests/status.h
index 5d3aef4b78..bb6381391b 100644
--- a/protocols/SkypeWeb/src/requests/status.h
+++ b/protocols/SkypeWeb/src/requests/status.h
@@ -36,4 +36,24 @@ public:
}
};
+class SetStatusMsgRequest : public HttpRequest
+{
+public:
+ SetStatusMsgRequest(const char *status, LoginInfo &li) :
+ HttpRequest(REQUEST_POST, "api.skype.com/users/nikolay200027/profile/partial")
+ {
+ Headers
+ << CHAR_VALUE("Accept", "application/json, text/javascript")
+ << CHAR_VALUE("X-Skypetoken", li.api.szToken)
+ << CHAR_VALUE("Content-Type", "application/json; charset=UTF-8");
+
+ JSONNode node, payload;
+ payload.set_name("payload");
+ node << (payload << JSONNode("mood", status));
+
+
+ Body << VALUE(node.write().c_str());
+ }
+};
+
#endif //_SKYPE_REQUEST_STATUS_H_