Command Queue
curl --request GET \
--url https://api.warpstore.app/api/games/1.0/commands/pending-commands \
--header 'Authorization: <authorization>'import requests
url = "https://api.warpstore.app/api/games/1.0/commands/pending-commands"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.warpstore.app/api/games/1.0/commands/pending-commands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.warpstore.app/api/games/1.0/commands/pending-commands",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.warpstore.app/api/games/1.0/commands/pending-commands"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.warpstore.app/api/games/1.0/commands/pending-commands")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.warpstore.app/api/games/1.0/commands/pending-commands")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"checkouts": [
{
"id": "0a4fd9f0-872d-4685-9636-34157b5c02eb",
"storeId": "1e1472eb-907a-4706-b318-aadf3ee54869",
"gameUserId": "76561198278382770",
"checkoutId": "22e99783-ae37-4d38-a46b-5a0458b74362",
"deliveryType": "APPROVE",
"products": [
{
"id": "be763498-93ac-4537-9709-65fb67849e9a",
"name": "💎 KIT [DIAMANTE]",
"price": 14.99,
"commands": ["addGroup {userId} Diamante"]
}
]
},
{
"id": "68562f15-2809-4c3f-9355-dbdfa5750af9",
"storeId": "1e1472eb-907a-4706-b318-aadf3ee54869",
"gameUserId": "NaN",
"checkoutId": "cdedecda-f5a1-4be3-a206-1fe7a54ef65d",
"deliveryType": "APPROVE",
"product": {
"id": "be763498-93ac-4537-9709-65fb67849e9a",
"name": "💎 KIT [DIAMANTE]",
"price": 14.99,
"commands": ["addGroup {userId} Diamante"]
}
}
]
}
Endpoints
Command Queue
Obtém até 10 entregas pendentes, com os produtos e comandos de cada uma.
GET
/
api
/
games
/
1.0
/
commands
/
pending-commands
Command Queue
curl --request GET \
--url https://api.warpstore.app/api/games/1.0/commands/pending-commands \
--header 'Authorization: <authorization>'import requests
url = "https://api.warpstore.app/api/games/1.0/commands/pending-commands"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.warpstore.app/api/games/1.0/commands/pending-commands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.warpstore.app/api/games/1.0/commands/pending-commands",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.warpstore.app/api/games/1.0/commands/pending-commands"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.warpstore.app/api/games/1.0/commands/pending-commands")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.warpstore.app/api/games/1.0/commands/pending-commands")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"checkouts": [
{
"id": "0a4fd9f0-872d-4685-9636-34157b5c02eb",
"storeId": "1e1472eb-907a-4706-b318-aadf3ee54869",
"gameUserId": "76561198278382770",
"checkoutId": "22e99783-ae37-4d38-a46b-5a0458b74362",
"deliveryType": "APPROVE",
"products": [
{
"id": "be763498-93ac-4537-9709-65fb67849e9a",
"name": "💎 KIT [DIAMANTE]",
"price": 14.99,
"commands": ["addGroup {userId} Diamante"]
}
]
},
{
"id": "68562f15-2809-4c3f-9355-dbdfa5750af9",
"storeId": "1e1472eb-907a-4706-b318-aadf3ee54869",
"gameUserId": "NaN",
"checkoutId": "cdedecda-f5a1-4be3-a206-1fe7a54ef65d",
"deliveryType": "APPROVE",
"product": {
"id": "be763498-93ac-4537-9709-65fb67849e9a",
"name": "💎 KIT [DIAMANTE]",
"price": 14.99,
"commands": ["addGroup {userId} Diamante"]
}
}
]
}
string
required
Response
string
ID do comando.
string
ID da loja.
string
ID do jogador que comprou.
string
Tipo de entrega que pode ser entre “APPROVE” ou “REFUND” ou “EXPIRE”
Se o deliveryType for igual a APPROVE ou REFUND, os produtos serão retornados como um array dentro da propriedade (products). Se for EXPIRE, apenas um produto será retornado e estará dentro da propriedade (product).
Product[]
Product
{
"checkouts": [
{
"id": "0a4fd9f0-872d-4685-9636-34157b5c02eb",
"storeId": "1e1472eb-907a-4706-b318-aadf3ee54869",
"gameUserId": "76561198278382770",
"checkoutId": "22e99783-ae37-4d38-a46b-5a0458b74362",
"deliveryType": "APPROVE",
"products": [
{
"id": "be763498-93ac-4537-9709-65fb67849e9a",
"name": "💎 KIT [DIAMANTE]",
"price": 14.99,
"commands": ["addGroup {userId} Diamante"]
}
]
},
{
"id": "68562f15-2809-4c3f-9355-dbdfa5750af9",
"storeId": "1e1472eb-907a-4706-b318-aadf3ee54869",
"gameUserId": "NaN",
"checkoutId": "cdedecda-f5a1-4be3-a206-1fe7a54ef65d",
"deliveryType": "APPROVE",
"product": {
"id": "be763498-93ac-4537-9709-65fb67849e9a",
"name": "💎 KIT [DIAMANTE]",
"price": 14.99,
"commands": ["addGroup {userId} Diamante"]
}
}
]
}
Was this page helpful?