#ifndef __XYSDK_PLATFORM_HTTP_H__
#define __XYSDK_PLATFORM_HTTP_H__



#define XY_RESPONSE_TEXT_SIZE (10*1024)

typedef struct {
    char data[XY_RESPONSE_TEXT_SIZE];
    size_t length;
} XYHttpResponseData;

int xy_api_http_get_request(char *url, void *response);
int xy_api_http_post_request(char *url, bool is_json, char *post_data, unsigned int data_len, void *response);

#endif // __XYSDK_PLATFORM_HTTP_H__
