Application Details
curl --request POST \
--url https://api.warpstore.app/api/games/1.0/init \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"serverPort": 123
}
'import requests
url = "https://api.warpstore.app/api/games/1.0/init"
payload = { "serverPort": 123 }
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({serverPort: 123})
};
fetch('https://api.warpstore.app/api/games/1.0/init', 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/init",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'serverPort' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.warpstore.app/api/games/1.0/init"
payload := strings.NewReader("{\n \"serverPort\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.warpstore.app/api/games/1.0/init")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"serverPort\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.warpstore.app/api/games/1.0/init")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"serverPort\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": "1e1472eb-907a-4706-b318-aadf3ee54869",
"name": "Rust ARIZONA",
"plan": "SUPER",
"expirationDate": "2024-05-02T18:42:41.000Z",
"url": "arizona.wrpstore.app"
}
API Endpoints
Application Details
Envia detalhes do servidor para a plataforma e obtem os dados da loja.
POST
/
api
/
games
/
1.0
/
init
Application Details
curl --request POST \
--url https://api.warpstore.app/api/games/1.0/init \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"serverPort": 123
}
'import requests
url = "https://api.warpstore.app/api/games/1.0/init"
payload = { "serverPort": 123 }
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({serverPort: 123})
};
fetch('https://api.warpstore.app/api/games/1.0/init', 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/init",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'serverPort' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.warpstore.app/api/games/1.0/init"
payload := strings.NewReader("{\n \"serverPort\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.warpstore.app/api/games/1.0/init")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"serverPort\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.warpstore.app/api/games/1.0/init")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"serverPort\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": "1e1472eb-907a-4706-b318-aadf3ee54869",
"name": "Rust ARIZONA",
"plan": "SUPER",
"expirationDate": "2024-05-02T18:42:41.000Z",
"url": "arizona.wrpstore.app"
}
string
required
number
required
Response
string
ID da sua loja integrada.
string
Nome da sua loja
string
Plano da sua loja
string
A data expiração (Formato UTC) da sua assinatura
string
URL da sua loja.
{
"id": "1e1472eb-907a-4706-b318-aadf3ee54869",
"name": "Rust ARIZONA",
"plan": "SUPER",
"expirationDate": "2024-05-02T18:42:41.000Z",
"url": "arizona.wrpstore.app"
}
Was this page helpful?
⌘I