summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/endpoint.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-18 13:04:59 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-18 13:04:59 +0000
commit7774e1ced73f710d2a01a07a26baacbd7f19f84d (patch)
treef631b6bf9a6cfa21c5e90dbcf4ee286a2ebed006 /protocols/SkypeWeb/src/requests/endpoint.h
parent3bc30875e34c2c16f2ee489227c0c7da7fee7f7f (diff)
SkypeWeb: Login/logout refactoring part 2. SyncHistory improvements.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/endpoint.h')
-rw-r--r--protocols/SkypeWeb/src/requests/endpoint.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/requests/endpoint.h b/protocols/SkypeWeb/src/requests/endpoint.h
index 428a727b5b..e0fefa07a3 100644
--- a/protocols/SkypeWeb/src/requests/endpoint.h
+++ b/protocols/SkypeWeb/src/requests/endpoint.h
@@ -33,4 +33,18 @@ public:
}
};
+class DeleteEndpointRequest : public HttpRequest
+{
+public:
+ DeleteEndpointRequest(const char *regToken, const char *EndpointId, const char *server = SKYPE_ENDPOINTS_HOST) :
+ HttpRequest(REQUEST_DELETE, FORMAT, "%s/v1/users/ME/endpoints/%s", server, ptrA(mir_urlEncode(EndpointId)))
+ {
+ Headers
+ << CHAR_VALUE("Accept", "application/json, text/javascript")
+ << FORMAT_VALUE("RegistrationToken", "registrationToken=%s", regToken);
+
+ }
+};
+
+
#endif //_SKYPE_REQUEST_ENDPOINT_H_