diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-03-18 20:28:01 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-03-18 20:28:01 +0000 |
commit | 3364fd6b8bdc21692805302a4333e49b44590b2c (patch) | |
tree | 578dd1a7a5db05311add225a78c65cc2a7b03f6d /protocols/SkypeWeb/src/requests/contacts.h | |
parent | cd4a3aab6a6406bcaca07734848e57477db4485d (diff) |
SkypeWeb:
- contact list loading
- refactoring
git-svn-id: http://svn.miranda-ng.org/main/trunk@12431 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/contacts.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/contacts.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/requests/contacts.h b/protocols/SkypeWeb/src/requests/contacts.h new file mode 100644 index 0000000000..3ba86d9b2e --- /dev/null +++ b/protocols/SkypeWeb/src/requests/contacts.h @@ -0,0 +1,17 @@ +#ifndef _SKYPE_REQUEST_CONTACTS_H_
+#define _SKYPE_REQUEST_CONTACTS_H_
+
+class GetContactsRequest : public HttpRequest
+{
+public:
+ GetContactsRequest(const char *token) :
+ HttpRequest(REQUEST_GET, "api.skype.com/users/self/contacts")
+ {
+ flags |= NLHRF_SSL;
+
+ AddHeader("X-Skypetoken", token);
+ AddHeader("Accept", "application/json");
+ }
+};
+
+#endif //_SKYPE_REQUEST_CONTACTS_H_
|