-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (33 loc) · 1.27 KB
/
main.cpp
File metadata and controls
43 lines (33 loc) · 1.27 KB
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
42
43
#include <iostream>
#include "dlapi.h"
int main(int argc, char** argv)
{
DLAPI::Client* client = new DLAPI::Client("http://dl-api.ddll.co", "q1uU7tFtXnLad6FIGGn2cB+gxcx64/uPoDhqe2Zn5AE=", "1");
DLAPI::Collection collection1;
collection1.name = "guarana_leaderboards";
collection1.params.setString("name", "MDT");
collection1.params.setString("fbid", "1235");
collection1.client = client;
// collection1.create();
// DLAPI::Collection collection2;
// collection2.name = "guarana_leaderboards";
// collection2.client = client;
// collection2.addQueryArg("fbid", "=", "1234");
// collection2.fetch();
DLAPI::Collection collection3;
collection3.name = "guarana_leaderboards";
collection3.params.setString("_id", "20");
collection3.params.setString("name", "MDT");
collection3.client = client;
collection3.update();
DLAPI::Collection collection2;
collection2.name = "guarana_leaderboards";
collection2.client = client;
collection2.addQueryArg("fbid", "=", "1235");
collection2.fetch();
// std::string args = "{\"q\":[[\"_id\",\"=\",93]]}";
// collection2.fetch(args);
// DLAPI::Dictionary result = collection2.result;
// DLAPI::Log("result: %i", collection2.result.size());
return 0;
}