matrix-3ds-sdk/include/matrixclient.h

18 lines
387 B
C
Raw Normal View History

2019-10-16 18:39:57 +02:00
#ifndef _matrixclient_h_
#define _matrixclient_h_
#include <string>
#include <3ds.h>
#include <jansson.h>
class MatrixClient {
private:
std::string hsUrl;
std::string token;
public:
MatrixClient(std::string homeserverUrl, std::string matrixToken);
Result doRequest(json_t* content, HTTPC_RequestMethod method, std::string path, json_t* body = NULL);
};
#endif // _matrixclient_h_