diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-07-07 11:44:27 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-07-07 11:44:27 +0000 |
commit | 320ae2c5255401fa7237307f59064d49b27282a4 (patch) | |
tree | f45d93de2d7b81645387dfebd308af54b028c5af /protocols/SkypeWeb/src/requests/status.h | |
parent | 8f5d25a514c3c3bf0080accdfc39b5411ce068c0 (diff) |
SkypeWeb: status messages support
git-svn-id: http://svn.miranda-ng.org/main/trunk@17075 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/status.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/status.h | 20 |
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_
|