From 7774e1ced73f710d2a01a07a26baacbd7f19f84d Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 18 Apr 2015 13:04:59 +0000 Subject: SkypeWeb: Login/logout refactoring part 2. SyncHistory improvements. git-svn-id: http://svn.miranda-ng.org/main/trunk@12909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/requests/endpoint.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'protocols/SkypeWeb/src/requests/endpoint.h') 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_ -- cgit v1.2.3