forked from fchat-pidgin/fchat-pidgin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathf-list_json.h
31 lines (22 loc) · 1.55 KB
/
f-list_json.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef F_LIST_JSON_H
#define F_LIST_JSON_H
#include "f-list.h"
#define JSON_GET_TICKET "https://www.f-list.net/json/getApiTicket.php"
#define JSON_BOOKMARK_ADD "https://www.f-list.net/json/api/bookmark-add.php"
#define JSON_BOOKMARK_REMOVE "https://www.f-list.net/json/api/bookmark-remove.php"
#define JSON_FRIENDS_REQUEST "https://www.f-list.net/json/api/request-send.php"
#define JSON_FRIENDS_REMOVE "https://www.f-list.net/json/api/friend-remove.php"
#define JSON_FRIENDS_ACCEPT "https://www.f-list.net/json/api/request-accept.php"
#define JSON_FRIENDS_DENY "https://www.f-list.net/json/api/request-deny.php"
#define JSON_FRIENDS_CANCEL "https://www.f-list.net/json/api/request-cancel.php"
#define JSON_FRIENDS "https://www.f-list.net/json/api/friend-bookmark-lists.php"
#define JSON_CHARACTER_INFO "https://www.f-list.net/json/api/character-info.php"
#define JSON_INFO_LIST "https://www.f-list.net/json/api/info-list.php"
#define JSON_KINK_LIST "https://www.f-list.net/json/api/kink-list.php"
#define JSON_UPLOAD_LOG "https://www.f-list.net/json/api/report-submit.php"
typedef void (*FListWebCallback) (FListWebRequestData*, gpointer data, JsonObject *, const gchar *error);
FListWebRequestData* flist_web_request(const gchar*, GHashTable*, GHashTable* cookies, gboolean post, FListWebCallback, gpointer data);
void flist_web_request_cancel(FListWebRequestData*);
GHashTable *flist_web_request_args(FListAccount*);
void flist_web_requests_init();
#endif /* F_LIST_JSON_H */