-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBatchOperations.java
More file actions
33 lines (26 loc) · 1.29 KB
/
BatchOperations.java
File metadata and controls
33 lines (26 loc) · 1.29 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
package examples.market;
// java examples/market/BatchOperations.java YOUR_TOKEN
//
// Пакетные операции (массовый bump, статистика по лотам).
import com.lolzteam.LolzteamClient;
import com.lolzteam.models.*;
public class BatchOperations {
public static void main(String[] args) throws Exception {
String token = args[0];
LolzteamClient client = LolzteamClient.create(token);
System.out.println("📦 Пакетные операции\n");
System.out.println("--- получение своих лотов ---");
ItemList itemsResp;
try {
itemsResp = client.market().listUser(null, null, null, "active", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
System.out.println("items: " + itemsResp.getItems());
} catch (Exception e) {
System.err.println("err: " + e.getMessage());
return;
}
// Массовый bump (поднятие лотов)
System.out.println("--- массовый bump ---");
System.out.println("NOTE: итерация по items и вызов managingBump(itemId) для каждого");
System.out.println("\ndone");
}
}