What Pria did on its own
curl --request GET \
--url https://hiimpria.ai/api/boards/digest \
--header 'x-access-token: <api-key>'import requests
url = "https://hiimpria.ai/api/boards/digest"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://hiimpria.ai/api/boards/digest', 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://hiimpria.ai/api/boards/digest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <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"
"net/http"
"io"
)
func main() {
url := "https://hiimpria.ai/api/boards/digest"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://hiimpria.ai/api/boards/digest")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/boards/digest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"batches": [
{
"batchId": "<string>",
"board": {
"_id": "<string>",
"name": "<string>"
},
"at": "2023-11-07T05:31:56Z",
"summary": "Added 3 cards",
"undone": true,
"items": [
{
"taskId": "<string>",
"title": "<string>"
}
],
"kept": [
{
"task": "<string>",
"reason": "<string>"
}
]
}
]
}Boards
What Pria did on its own
The caller’s own change batches they have not marked as seen, newest first (at most 20), for boards they can still see. A batch is one thing Pria did without being asked, such as filing a pasted list into cards on a personal board. Each entry says what was added and lists the cards, so the person can be told and can undo it. Send board to look at one board only.
GET
/
api
/
boards
/
digest
What Pria did on its own
curl --request GET \
--url https://hiimpria.ai/api/boards/digest \
--header 'x-access-token: <api-key>'import requests
url = "https://hiimpria.ai/api/boards/digest"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://hiimpria.ai/api/boards/digest', 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://hiimpria.ai/api/boards/digest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <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"
"net/http"
"io"
)
func main() {
url := "https://hiimpria.ai/api/boards/digest"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://hiimpria.ai/api/boards/digest")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/boards/digest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"batches": [
{
"batchId": "<string>",
"board": {
"_id": "<string>",
"name": "<string>"
},
"at": "2023-11-07T05:31:56Z",
"summary": "Added 3 cards",
"undone": true,
"items": [
{
"taskId": "<string>",
"title": "<string>"
}
],
"kept": [
{
"task": "<string>",
"reason": "<string>"
}
]
}
]
}Was this page helpful?