forked from D7EAD/CoinGecko
-
Notifications
You must be signed in to change notification settings - Fork 1
/
events.h
41 lines (38 loc) · 1.37 KB
/
events.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
32
33
34
35
36
37
38
39
40
41
#include "web.h"
namespace gecko {
// Purpose: class interface to all CoinGecko 'events' functions found below
// Refer: https://www.coingecko.com/api/documentations/v3#/events
// Status: functional - untested
class eventsFunctions : private web {
public:
// Action: fetches events
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// getEvents()
// getEvents("CN", "Meetup")
// Notes: parameters from and to_date are in format yyyy-mm-dd
DllExport gecko::web::response getEvents(
OPTIONAL std::string country_code = "US",
OPTIONAL std::string type = "Conference",
OPTIONAL unsigned short page = 1,
OPTIONAL bool upcoming_events_only = false,
OPTIONAL const char* from_date = NULL,
OPTIONAL const char* to_date = NULL
);
// Action: fetches list of event countries
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// getEventCountries()
// Notes: none
DllExport gecko::web::response getEventCountries();
// Action: fetches list of event types
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// getEventTypes()
// Notes: none
DllExport gecko::web::response getEventTypes();
};
}