diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-04-07 21:50:05 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-04-07 21:50:05 +0000 |
commit | 90a05404a6ded56141c0230f663686439f8fa146 (patch) | |
tree | 6531783fbbedc04db025526243342823ed9ccd65 /protocols/SkypeWeb/src/requests/status.h | |
parent | de593c8e4ae504a8d159cc272740846ef9c20ca6 (diff) |
SkypeWeb:
- added ability to getting contacts statuses
- partly reworked login flow
git-svn-id: http://svn.miranda-ng.org/main/trunk@12665 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/status.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/status.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/requests/status.h b/protocols/SkypeWeb/src/requests/status.h index f7669e2197..6d61af48d5 100644 --- a/protocols/SkypeWeb/src/requests/status.h +++ b/protocols/SkypeWeb/src/requests/status.h @@ -7,14 +7,14 @@ public: SetStatusRequest(const char *regToken, const char *status, const char *server = "client-s.gateway.messenger.live.com") :
HttpRequest(REQUEST_PUT, FORMAT, "%s/v1/users/ME/presenceDocs/messagingService", server)
{
- CMStringA statuss;
- statuss.AppendFormat("{\"status\":\"%s\"}", status);
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")
<< FORMAT_VALUE("RegistrationToken", "registrationToken=%s", regToken)
<< CHAR_VALUE("Content-Type", "application/json; charset=UTF-8");
- Body << VALUE(statuss);
+ CMStringA data;
+ data.AppendFormat("{\"status\":\"%s\"}", status);
+ Body << VALUE(data);
}
};
|