-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExportPlayersInSegment.http
59 lines (41 loc) · 1.14 KB
/
ExportPlayersInSegment.http
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
# Install Visual Studio code
# https://code.visualstudio.com/
# Install "REST Client" extension
# Go -> Extensions, search for "REST Client"
@titleId = 12345
@segmentId = ABC123
@secretKey = SECRETKEYHERE
### 1 - Run ExportPlayersInSegment first ###
###
# @name ExportPlayersInSegment
POST https://{{titleId}}.playfabapi.com/Admin/ExportPlayersInSegment HTTP/1.1
Accept: */*
Accept-Encoding: gzip
Connection: keep-alive
Content-Type: application/json
X-Secretkey: {{secretKey}}
{
"SegmentId": "{{segmentId}}"
}
@exportId = {{ExportPlayersInSegment.response.body.data.ExportId}}
### 2 - Run GetSegmentExport second ###
###
# @name GetSegmentExport
POST https://{{titleId}}.playfabapi.com/Admin/GetSegmentExport HTTP/1.1
Accept: */*
Accept-Encoding: gzip
Connection: keep-alive
Content-Type: application/json
X-Secretkey: {{secretKey}}
{
"ExportId": "{{exportId}}"
}
@downloadUrl = {{GetSegmentExport.response.body.data.IndexUrl}}
### 3 - Download the segment index third ###
###
# @name downloadsegmentindex
GET {{downloadUrl}}
#### copy/paste each TSV file from the index and download
###
# @name downloadfile
GET <<url from index file here>>