List game shots
curl --request GET \
--url https://api.preprod.poolhouse.dev/api/game-shots \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.preprod.poolhouse.dev/api/game-shots"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.preprod.poolhouse.dev/api/game-shots', 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.preprod.poolhouse.dev/api/game-shots",
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: Bearer <token>"
],
]);
$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.preprod.poolhouse.dev/api/game-shots"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.preprod.poolhouse.dev/api/game-shots")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.preprod.poolhouse.dev/api/game-shots")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"difficulty": 123,
"eps": 123,
"game_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_edited": true,
"is_timed_out": true,
"new_rating": 123,
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"previous_rating": 123,
"rating_delta": 123,
"round_number": 123,
"shot_data_s3_key": "<string>",
"shots_played": 123,
"started_at": "2023-11-07T05:31:56Z",
"successful": true,
"taken_at": "2023-11-07T05:31:56Z",
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"team_player_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"venue_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"message": "<string>",
"status": "success"
}{
"data": "<unknown>",
"message": "<string>",
"status": "success"
}{
"data": "<unknown>",
"message": "<string>",
"status": "success"
}{
"data": "<unknown>",
"message": "<string>",
"status": "success"
}{
"data": "<unknown>",
"message": "<string>",
"status": "success"
}{
"data": "<unknown>",
"message": "<string>",
"status": "success"
}Game shots
List game shots
Returns every shot that matches the filters. The list is not paged.
Every filter is optional and filters combine with AND, except that only one of organization_id, brand_id and venue_id is applied: the first one given, in that order.
With none of organization_id, brand_id, venue_id and game_id, the caller needs read access across all venues.
Who can call it: Any staff role with access to the organisation, brand or venue asked for. Also the machine key.
GET
/
game-shots
List game shots
curl --request GET \
--url https://api.preprod.poolhouse.dev/api/game-shots \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.preprod.poolhouse.dev/api/game-shots"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.preprod.poolhouse.dev/api/game-shots', 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.preprod.poolhouse.dev/api/game-shots",
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: Bearer <token>"
],
]);
$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.preprod.poolhouse.dev/api/game-shots"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.preprod.poolhouse.dev/api/game-shots")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.preprod.poolhouse.dev/api/game-shots")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"difficulty": 123,
"eps": 123,
"game_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_edited": true,
"is_timed_out": true,
"new_rating": 123,
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"previous_rating": 123,
"rating_delta": 123,
"round_number": 123,
"shot_data_s3_key": "<string>",
"shots_played": 123,
"started_at": "2023-11-07T05:31:56Z",
"successful": true,
"taken_at": "2023-11-07T05:31:56Z",
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"team_player_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"venue_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"message": "<string>",
"status": "success"
}{
"data": "<unknown>",
"message": "<string>",
"status": "success"
}{
"data": "<unknown>",
"message": "<string>",
"status": "success"
}{
"data": "<unknown>",
"message": "<string>",
"status": "success"
}{
"data": "<unknown>",
"message": "<string>",
"status": "success"
}{
"data": "<unknown>",
"message": "<string>",
"status": "success"
}Authorizations
Query Parameters
Response
The game shots.