cURL
curl --request GET \
--url https://api.gameball.co/api/v4.0/integrations/configurations/widget \
--header 'apikey: <api-key>'const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.gameball.co/api/v4.0/integrations/configurations/widget', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gameball.co/api/v4.0/integrations/configurations/widget"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.gameball.co/api/v4.0/integrations/configurations/widget");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("apikey", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gameball.co/api/v4.0/integrations/configurations/widget"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gameball.co/api/v4.0/integrations/configurations/widget",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://api.gameball.co/api/v4.0/integrations/configurations/widget")
.header("apikey", "<api-key>")
.asString();{
"colors": {
"primary": "<string>",
"secondary": "<string>",
"accent": "<string>",
"background": "<string>",
"text": "<string>"
},
"layout": {
"showOnMobile": true
},
"features": {
"showBalance": true,
"showPoints": true,
"showTier": true,
"showNotifications": true
}
}Get Widget Configurations
Retrieve styling settings, including colors and other visual elements for the Gameball widget.
GET
/
api
/
v4.0
/
integrations
/
configurations
/
widget
cURL
curl --request GET \
--url https://api.gameball.co/api/v4.0/integrations/configurations/widget \
--header 'apikey: <api-key>'const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.gameball.co/api/v4.0/integrations/configurations/widget', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gameball.co/api/v4.0/integrations/configurations/widget"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.gameball.co/api/v4.0/integrations/configurations/widget");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("apikey", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gameball.co/api/v4.0/integrations/configurations/widget"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gameball.co/api/v4.0/integrations/configurations/widget",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://api.gameball.co/api/v4.0/integrations/configurations/widget")
.header("apikey", "<api-key>")
.asString();{
"colors": {
"primary": "<string>",
"secondary": "<string>",
"accent": "<string>",
"background": "<string>",
"text": "<string>"
},
"layout": {
"showOnMobile": true
},
"features": {
"showBalance": true,
"showPoints": true,
"showTier": true,
"showNotifications": true
}
}Was this page helpful?
⌘I