Get Happy Hour
curl --request GET \
--url https://tokens.shakesco.com/happy-hour \
--header 'Authorization: Bearer <token>'import requests
url = "https://tokens.shakesco.com/happy-hour"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://tokens.shakesco.com/happy-hour', 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://tokens.shakesco.com/happy-hour",
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://tokens.shakesco.com/happy-hour"
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://tokens.shakesco.com/happy-hour")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tokens.shakesco.com/happy-hour")
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{
"end_time": "1715010000",
"multiplier": 2,
"is_active": true
}
{
"end_time": "0",
"multiplier": 1,
"is_active": false
}
Promotions
Get Happy Hour
Check whether a happy hour is active and what the multiplier is
GET
/
happy-hour
Get Happy Hour
curl --request GET \
--url https://tokens.shakesco.com/happy-hour \
--header 'Authorization: Bearer <token>'import requests
url = "https://tokens.shakesco.com/happy-hour"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://tokens.shakesco.com/happy-hour', 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://tokens.shakesco.com/happy-hour",
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://tokens.shakesco.com/happy-hour"
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://tokens.shakesco.com/happy-hour")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tokens.shakesco.com/happy-hour")
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{
"end_time": "1715010000",
"multiplier": 2,
"is_active": true
}
{
"end_time": "0",
"multiplier": 1,
"is_active": false
}
For the complete documentation index, see llms.txt.
Returns the current happy hour state.
is_active tells you whether claims right now would be multiplied.
Response
Unix timestamp (seconds) when the happy hour ends.
"0" if no happy hour was ever set or it was ended early.Multiplier value (e.g.
2 for 2x). Returns 1 when inactive.true if a happy hour is currently in progressconst res = await fetch("https://tokens.shakesco.com/happy-hour", {
headers: { Authorization: `Bearer ${API_KEY}` },
});
const { end_time, multiplier, is_active } = await res.json();
{
"end_time": "1715010000",
"multiplier": 2,
"is_active": true
}
{
"end_time": "0",
"multiplier": 1,
"is_active": false
}
⌘I