summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/contacts.h
blob: 3ba86d9b2e6c7b7f0addfb4ba8f374ffce51f8b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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_