blob: ae4076a788099ea844ae63f84163a51d5ecc0288 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 | #ifndef _SLACK_API_IM_H_
#define _SLACK_API_IM_H_
class OpenImChannelRequest : public HttpRequest
{
public:
	OpenImChannelRequest(const char *token, const char *user) :
		HttpRequest(HttpMethod::HttpPost, SLACK_API_URL "/im.open")
	{
		Headers
			<< CHAR_VALUE("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
		Content
			<< CHAR_VALUE("token", token)
			<< CHAR_VALUE("user", user);
	}
};
#endif //_SLACK_API_IM_H_
 |