Список принимаемых валют
curl --request POST \
--url https://api.oblodai.com/v1/payment/accepted/list \
--header 'X-Public-Id: <api-key>' \
--header 'X-Signature: <api-key>' \
--header 'X-Timestamp: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oblodai.com/v1/payment/accepted/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Public-Id: <api-key>",
"X-Signature: <api-key>",
"X-Timestamp: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'POST',
headers: {
'X-Public-Id': '<api-key>',
'X-Signature': '<api-key>',
'X-Timestamp': '<api-key>'
}
};
fetch('https://api.oblodai.com/v1/payment/accepted/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.oblodai.com/v1/payment/accepted/list"
headers = {
"X-Public-Id": "<api-key>",
"X-Signature": "<api-key>",
"X-Timestamp": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.oblodai.com/v1/payment/accepted/list"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Public-Id", "<api-key>")
req.Header.Add("X-Signature", "<api-key>")
req.Header.Add("X-Timestamp", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Список принимаемых валют
POST
/
v1
/
payment
/
accepted
/
list
Список принимаемых валют
curl --request POST \
--url https://api.oblodai.com/v1/payment/accepted/list \
--header 'X-Public-Id: <api-key>' \
--header 'X-Signature: <api-key>' \
--header 'X-Timestamp: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oblodai.com/v1/payment/accepted/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Public-Id: <api-key>",
"X-Signature: <api-key>",
"X-Timestamp: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'POST',
headers: {
'X-Public-Id': '<api-key>',
'X-Signature': '<api-key>',
'X-Timestamp': '<api-key>'
}
};
fetch('https://api.oblodai.com/v1/payment/accepted/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.oblodai.com/v1/payment/accepted/list"
headers = {
"X-Public-Id": "<api-key>",
"X-Signature": "<api-key>",
"X-Timestamp": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.oblodai.com/v1/payment/accepted/list"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Public-Id", "<api-key>")
req.Header.Add("X-Signature", "<api-key>")
req.Header.Add("X-Timestamp", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Авторизации
pk_live_… для платёжных эндпоинтов, wk_live_… для выплат/возвратов.
hex(HMAC-SHA256(секрет, "\n<МЕТОД>\n<путь>\n<тело>"))
Текущее время Unix в секундах (в пределах допустимого расхождения).
Ответ
200
Success
⌘I