-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathitems_mock_test.go
52 lines (50 loc) · 1.06 KB
/
items_mock_test.go
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
package steamapi
// GetMockOKGetPlayerItems steam API mock response gives you item_id, def_index...
// https://api.steampowered.com/IEconItems_XXXX/GetPlayerItems/v1/?key=XXXXXX&format=json&steamid=XXXXX
func GetMockOKGetPlayerItems() string {
return `
{
"result": {
"status": 1,
"num_backpack_slots": 840,
"items": [
{
"id": 1234567894,
"original_id": 123456,
"defindex": 5470,
"level": 1,
"quality": 4,
"inventory": 19,
"quantity": 1,
"equipped": [
{
"class": 23,
"slot": 6
}
]
},
{
"id": 1234567897,
"original_id": 1234567897,
"defindex": 5508,
"level": 1,
"quality": 4,
"inventory": 25,
"quantity": 1,
"attributes": [
{
"defindex": 8,
"value": 1049511890,
"float_value": 0.27789169549942017
},
{
"defindex": 147,
"value": "models/weapons/stattrack.mdl"
}
]
}
]
}
}
`
}