@@ -0,0 +1,66 @@
|
||||
meta {
|
||||
name: SearchLobbyRooms
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{gameApiHost}}/game-api/api/v1.0/lobby/rooms/search
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
accept: */*
|
||||
user-agent: Arma Reforger/1.7.0.54 (Client; Windows)
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"directJoinCode": "",
|
||||
"hostAddress": "",
|
||||
"order": "PlayerCount",
|
||||
"includePing": 1,
|
||||
"scenarioId": "",
|
||||
"text": "",
|
||||
"ascendent": false,
|
||||
"gameClientFilter": "AnyCompatible",
|
||||
"accessToken": "",
|
||||
"clientVersion": "1.7.0",
|
||||
"platformId": "ReforgerSteam",
|
||||
"gameClientType": "PLATFORM_PC",
|
||||
"lightweight": true,
|
||||
"from": 0,
|
||||
"limit": 50,
|
||||
"pingValues": [
|
||||
{ "pingSiteId": "tokyo", "value": 243.56622314453126 },
|
||||
{ "pingSiteId": "los_angeles", "value": 171.9037628173828 },
|
||||
{ "pingSiteId": "miami", "value": 136.6873321533203 },
|
||||
{ "pingSiteId": "new_york", "value": 115.14977264404297 },
|
||||
{ "pingSiteId": "singapore", "value": 271.533203125 },
|
||||
{ "pingSiteId": "frankfurt", "value": 24.513813018798829 },
|
||||
{ "pingSiteId": "london", "value": 32.16381072998047 },
|
||||
{ "pingSiteId": "sydney", "value": 296.2795104980469 }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
gameApiHost: api-ar-game.bistudio.com
|
||||
}
|
||||
|
||||
script:pre-request {
|
||||
// The game sends a JSON body under a form-urlencoded content-type. Bruno keys
|
||||
// body variable interpolation off content-type, so setting that header
|
||||
// declaratively silently disables {{...}} substitution in the body. Instead we
|
||||
// inject the token here and set the header after, once interpolation is moot.
|
||||
const body = req.getBody();
|
||||
body.accessToken = bru.getEnvVar("accessToken");
|
||||
req.setBody(JSON.stringify(body));
|
||||
req.setHeader("content-type", "application/x-www-form-urlencoded");
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
vars {
|
||||
gameApiHost: https://api-ar-game.bistudio.com
|
||||
accessToken: PASTE_JWT_HERE
|
||||
}
|
||||
Reference in New Issue
Block a user