Increase total amount of existing partner token within claiming center. For internal usage only.
curl --request PATCH \
--url https://backend.swap.coffee/v1/partnership/claiming \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"access_token_name": "<string>",
"token_address": "<string>",
"amount": "<string>"
}
'import requests
url = "https://backend.swap.coffee/v1/partnership/claiming"
payload = {
"access_token_name": "<string>",
"token_address": "<string>",
"amount": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({access_token_name: '<string>', token_address: '<string>', amount: '<string>'})
};
fetch('https://backend.swap.coffee/v1/partnership/claiming', 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://backend.swap.coffee/v1/partnership/claiming",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'access_token_name' => '<string>',
'token_address' => '<string>',
'amount' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.swap.coffee/v1/partnership/claiming"
payload := strings.NewReader("{\n \"access_token_name\": \"<string>\",\n \"token_address\": \"<string>\",\n \"amount\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://backend.swap.coffee/v1/partnership/claiming")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"access_token_name\": \"<string>\",\n \"token_address\": \"<string>\",\n \"amount\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.swap.coffee/v1/partnership/claiming")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"access_token_name\": \"<string>\",\n \"token_address\": \"<string>\",\n \"amount\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"accrued": "1000000000",
"total": "1000000000"
}{
"error": "<string>"
}Partnership
Increase total amount of existing partner token within claiming center. For internal usage only.
PATCH
/
v1
/
partnership
/
claiming
Increase total amount of existing partner token within claiming center. For internal usage only.
curl --request PATCH \
--url https://backend.swap.coffee/v1/partnership/claiming \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"access_token_name": "<string>",
"token_address": "<string>",
"amount": "<string>"
}
'import requests
url = "https://backend.swap.coffee/v1/partnership/claiming"
payload = {
"access_token_name": "<string>",
"token_address": "<string>",
"amount": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({access_token_name: '<string>', token_address: '<string>', amount: '<string>'})
};
fetch('https://backend.swap.coffee/v1/partnership/claiming', 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://backend.swap.coffee/v1/partnership/claiming",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'access_token_name' => '<string>',
'token_address' => '<string>',
'amount' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.swap.coffee/v1/partnership/claiming"
payload := strings.NewReader("{\n \"access_token_name\": \"<string>\",\n \"token_address\": \"<string>\",\n \"amount\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://backend.swap.coffee/v1/partnership/claiming")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"access_token_name\": \"<string>\",\n \"token_address\": \"<string>\",\n \"amount\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.swap.coffee/v1/partnership/claiming")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"access_token_name\": \"<string>\",\n \"token_address\": \"<string>\",\n \"amount\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"accrued": "1000000000",
"total": "1000000000"
}{
"error": "<string>"
}Register new partner token for claiming center. For internal usage only.Get aggregated information about staking for specific user. Requires associated x-api-key.
⌘I