List themes you can post to
curl --request GET \
--url https://api.budgetpixel.com/v1/themes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.budgetpixel.com/v1/themes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.budgetpixel.com/v1/themes', 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.budgetpixel.com/v1/themes",
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.budgetpixel.com/v1/themes"
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.budgetpixel.com/v1/themes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.budgetpixel.com/v1/themes")
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{
"themes": [
{
"clan": {
"id": 123,
"name": "Neon Collective",
"role": "owner",
"slug": "neon-collective",
"url": "https://budgetpixel.com/clans/neon-collective"
},
"description": "<string>",
"ends_at": "2023-11-07T05:31:56Z",
"entry_count": 123,
"id": 75,
"participant_count": 123,
"starts_at": "2023-11-07T05:31:56Z",
"title": "Neon Noir",
"url": "https://budgetpixel.com/themes/75"
}
]
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}Social
List themes you can post to
List the live clan themes you can enter with
POST /v1/posts — pass a theme’s id as
theme_id. A theme is a time-boxed creative event hosted by a clan
(budgetpixel.com/themes/<id>); entered posts appear on the theme’s page.
Includes every live theme of the clans you own, moderate, or have joined,
with your role in each clan. Themes of clans you’re banned from, or whose owner
you have a block with, are left out. Themes that haven’t started or have ended
are left out too, since they don’t accept entries.
Ordered by deadline, soonest first (ends_at). Returns at most 100 themes.
Free — no credits are charged.
GET
/
themes
List themes you can post to
curl --request GET \
--url https://api.budgetpixel.com/v1/themes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.budgetpixel.com/v1/themes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.budgetpixel.com/v1/themes', 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.budgetpixel.com/v1/themes",
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.budgetpixel.com/v1/themes"
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.budgetpixel.com/v1/themes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.budgetpixel.com/v1/themes")
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{
"themes": [
{
"clan": {
"id": 123,
"name": "Neon Collective",
"role": "owner",
"slug": "neon-collective",
"url": "https://budgetpixel.com/clans/neon-collective"
},
"description": "<string>",
"ends_at": "2023-11-07T05:31:56Z",
"entry_count": 123,
"id": 75,
"participant_count": 123,
"starts_at": "2023-11-07T05:31:56Z",
"title": "Neon Noir",
"url": "https://budgetpixel.com/themes/75"
}
]
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}