Campaign
Get Campaign Info
Retrieves comprehensive campaign data including all tasks, quests, their properties, dependencies, and reward structures. Supports both published and development environments.
GET
/
campaign
/
info
Get Campaign Info
curl --request GET \
--url https://prod.claimr.io/api/v1/campaign/info \
--header 'Authorization: Bearer <token>'import requests
url = "https://prod.claimr.io/api/v1/campaign/info"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://prod.claimr.io/api/v1/campaign/info', 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://prod.claimr.io/api/v1/campaign/info",
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://prod.claimr.io/api/v1/campaign/info"
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://prod.claimr.io/api/v1/campaign/info")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.claimr.io/api/v1/campaign/info")
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{
"success": true,
"data": {
"id": "campaign_abc123",
"name": "Summer Gaming Challenge",
"actions": [
{
"id": "daily_login",
"name": "Daily Login",
"type": "api_call",
"recurrence": "daily",
"ref_xp": "10",
"xp": 50,
"xp_mul": "1.5",
"meta": {},
"deps": [
"tutorial_completed"
],
"is_optional": false
}
],
"quests": [
{
"id": "weekly_challenge",
"name": "Weekly Challenge",
"actions": [
"daily_login",
"complete_match"
],
"xp": 200,
"xp_mul": "2.0",
"meta": {},
"deps": [
"beginner_quest"
]
}
]
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Campaign ID to retrieve information for
⌘I
Get Campaign Info
curl --request GET \
--url https://prod.claimr.io/api/v1/campaign/info \
--header 'Authorization: Bearer <token>'import requests
url = "https://prod.claimr.io/api/v1/campaign/info"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://prod.claimr.io/api/v1/campaign/info', 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://prod.claimr.io/api/v1/campaign/info",
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://prod.claimr.io/api/v1/campaign/info"
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://prod.claimr.io/api/v1/campaign/info")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.claimr.io/api/v1/campaign/info")
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{
"success": true,
"data": {
"id": "campaign_abc123",
"name": "Summer Gaming Challenge",
"actions": [
{
"id": "daily_login",
"name": "Daily Login",
"type": "api_call",
"recurrence": "daily",
"ref_xp": "10",
"xp": 50,
"xp_mul": "1.5",
"meta": {},
"deps": [
"tutorial_completed"
],
"is_optional": false
}
],
"quests": [
{
"id": "weekly_challenge",
"name": "Weekly Challenge",
"actions": [
"daily_login",
"complete_match"
],
"xp": 200,
"xp_mul": "2.0",
"meta": {},
"deps": [
"beginner_quest"
]
}
]
}
}