Get active tokens for a project
curl --request GET \
--url https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}import requests
url = "https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}', 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://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}")
.asString();require 'uri'
require 'net/http'
url = URI("https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"isError": "0",
"Error": "",
"Data": {
"Tokens": [
{
"Symbol": "BOLT",
"Guid": "XXXXX-XXXX-XXXX-XXXX-XXXXX",
"Name": "Bolts",
"Contracts": [
{
"ChainName": "Ethereum",
"ContractGuid": "XXXX-XXXXX-XXXXX"
}
]
}
]
}
}Token Endpoints
Tokens
GET
/
Tokens
/
{YourAPIKEY}
/
{ProjectGuid}
Get active tokens for a project
curl --request GET \
--url https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}import requests
url = "https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}', 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://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}")
.asString();require 'uri'
require 'net/http'
url = URI("https://intern.payingame.io/rest/PayIngame/PublicAPI/Tokens/{YourAPIKEY}/{ProjectGuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"isError": "0",
"Error": "",
"Data": {
"Tokens": [
{
"Symbol": "BOLT",
"Guid": "XXXXX-XXXX-XXXX-XXXX-XXXXX",
"Name": "Bolts",
"Contracts": [
{
"ChainName": "Ethereum",
"ContractGuid": "XXXX-XXXXX-XXXXX"
}
]
}
]
}
}This endpoint will return all the tokens that are available for a certain project. These are the tokens you created. Only those tokens where minimal one contract exist will be returned.
⌘I