Deliver due third-party callbacks (cron) (admin)
curl --request POST \
--url https://api.pid.peridotvault.com/v1/fiat/admin/dispatch-events \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '{
"take": 123
}'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({take: 123})
};
fetch('https://api.pid.peridotvault.com/v1/fiat/admin/dispatch-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/fiat/admin/dispatch-events"
payload = { "take": 123 }
headers = {
"cookie": "pid_access=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/fiat/admin/dispatch-events"
payload := strings.NewReader("{\n \"take\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "pid_access=")
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))
}{}{
"statusCode": 401,
"message": "Unauthorized"
}fiat
Deliver due third-party callbacks (cron) (admin)
POST
/
fiat
/
admin
/
dispatch-events
Deliver due third-party callbacks (cron) (admin)
curl --request POST \
--url https://api.pid.peridotvault.com/v1/fiat/admin/dispatch-events \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '{
"take": 123
}'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({take: 123})
};
fetch('https://api.pid.peridotvault.com/v1/fiat/admin/dispatch-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/fiat/admin/dispatch-events"
payload = { "take": 123 }
headers = {
"cookie": "pid_access=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/fiat/admin/dispatch-events"
payload := strings.NewReader("{\n \"take\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "pid_access=")
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))
}{}{
"statusCode": 401,
"message": "Unauthorized"
}