summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/profile.h
blob: 8473d198750ee4300c2dcae4f5e3d8673359a64d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _SKYPE_REQUEST_PROFILE_H_
#define _SKYPE_REQUEST_PROFILE_H_

class GetProfileRequest : public HttpRequest
{
public:
	GetProfileRequest(const char *token, const char *skypename = "self") :
		HttpRequest(REQUEST_GET, "api.skype.com/users/%s/profile", skypename)
	{
		flags |= NLHRF_SSL;

		AddHeader("X-Skypetoken", token);
		AddHeader("Accept", "application/json");
	}
};

#endif //_SKYPE_REQUEST_PROFILE_H_