-
Notifications
You must be signed in to change notification settings - Fork 2
/
query.py
67 lines (65 loc) · 1.31 KB
/
query.py
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
search_query = """
query SearchStickerSample {
sticker {
searchStickers(
req:{
searchStickersParams:{searchText: "search_text", numberResults: number_results},
stickerUserContext:{countryCode: US, localTimeZoneUTCOffsetMinutes: 2,locale: EN_US}
}){
stickerResults {
items {
itemType
id
pngURL
thumbnailURL
}
}
}
}
}
"""
trending_query = """
query SearchStickerSample {
sticker {
trendingStickers(
req:{
numberResults: number_results,
stickerUserContext:{countryCode: US, localTimeZoneUTCOffsetMinutes: 2,locale: EN_US}
}) {
stickerResults{
items {
id
pngURL
thumbnailURL
}
}
}
}
}
"""
category_query = """
query SearchStickerSample{
sticker {
categoryStickers(
req:{
numberCategories: number_category,
numberResults: number_results,
stickerUserContext:{countryCode: US, localTimeZoneUTCOffsetMinutes: 2,locale: EN_US}
}) {
stickerSection {
stickerCategories {
category
stickerResults {
items {
itemType
id
pngURL
thumbnailURL
}
}
}
}
}
}
}
"""