summaryrefslogtreecommitdiff
path: root/protocols/Slack/src/api/api_users.h
blob: 5037e9737446129a8f73ea69ae86dd077dcdd38f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _SLACK_API_USERS_H_
#define _SLACK_API_USERS_H_

class GetUserListRequest : public HttpRequest
{
public:
	GetUserListRequest(const char *token) :
		HttpRequest(HttpMethod::HttpPost, SLACK_API_URL "/users.list")
	{
		Headers
			<< CHAR_VALUE("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
		Content
			<< CHAR_VALUE("token", token)
			<< CHAR_VALUE("presence", "true");
	}
};

#endif //_SLACK_API_USERS_H_