Read the list
curl --request GET \
--url https://api.example.com/v1/shopping/items \
--cookie __Secure-better-auth.session_token=import requests
url = "https://api.example.com/v1/shopping/items"
headers = {"cookie": "__Secure-better-auth.session_token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: '__Secure-better-auth.session_token='}};
fetch('https://api.example.com/v1/shopping/items', 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://api.example.com/v1/shopping/items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Secure-better-auth.session_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://api.example.com/v1/shopping/items"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "__Secure-better-auth.session_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://api.example.com/v1/shopping/items")
.header("cookie", "__Secure-better-auth.session_token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/shopping/items")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Secure-better-auth.session_token='
response = http.request(request)
puts response.read_body{
"placeId": "<string>",
"open": [
{
"kind": "place",
"placeId": "<string>",
"title": "<string>",
"items": [
{
"id": "<string>",
"version": "<string>",
"placeId": "<string>",
"name": "<string>",
"quantity": "<string>",
"section": "<string>",
"bought": true,
"placeConfidence": "confirmed",
"addedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"changedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"changedAt": "2023-11-07T05:31:56Z",
"due": "2023-12-25",
"origin": {
"requirementId": "<string>",
"label": "<string>"
}
}
]
}
],
"bought": [
{
"id": "<string>",
"version": "<string>",
"placeId": "<string>",
"name": "<string>",
"quantity": "<string>",
"section": "<string>",
"bought": true,
"placeConfidence": "confirmed",
"addedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"changedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"changedAt": "2023-11-07T05:31:56Z",
"due": "2023-12-25",
"origin": {
"requirementId": "<string>",
"label": "<string>"
}
}
],
"soon": [
{
"id": "<string>",
"version": "<string>",
"placeId": "<string>",
"name": "<string>",
"quantity": "<string>",
"section": "<string>",
"bought": true,
"placeConfidence": "confirmed",
"addedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"changedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"changedAt": "2023-11-07T05:31:56Z",
"due": "2023-12-25",
"origin": {
"requirementId": "<string>",
"label": "<string>"
}
}
]
}{
"message": "Unauthorized",
"statusCode": 401
}{
"code": "<string>",
"details": {}
}{
"code": "request.timeout",
"correlationId": "<string>"
}{
"code": "request.timeout",
"correlationId": "<string>"
}Shopping
Read the list
The open items in groups and the bought items, latest first. Without place (Todos) the groups are places, in creation order; with it they are that place’s sections, with the items of no section last. soon (“Prazo curto”) holds the open items due by today plus two days in America/Sao_Paulo, overdue included, by due date, and takes them out of their groups. An item’s due is its deadline; origin names the activity whose requirement derived it, and a derived item loses its due once that occurrence is cancelled.
GET
/
v1
/
shopping
/
items
Read the list
curl --request GET \
--url https://api.example.com/v1/shopping/items \
--cookie __Secure-better-auth.session_token=import requests
url = "https://api.example.com/v1/shopping/items"
headers = {"cookie": "__Secure-better-auth.session_token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: '__Secure-better-auth.session_token='}};
fetch('https://api.example.com/v1/shopping/items', 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://api.example.com/v1/shopping/items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Secure-better-auth.session_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://api.example.com/v1/shopping/items"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "__Secure-better-auth.session_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://api.example.com/v1/shopping/items")
.header("cookie", "__Secure-better-auth.session_token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/shopping/items")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Secure-better-auth.session_token='
response = http.request(request)
puts response.read_body{
"placeId": "<string>",
"open": [
{
"kind": "place",
"placeId": "<string>",
"title": "<string>",
"items": [
{
"id": "<string>",
"version": "<string>",
"placeId": "<string>",
"name": "<string>",
"quantity": "<string>",
"section": "<string>",
"bought": true,
"placeConfidence": "confirmed",
"addedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"changedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"changedAt": "2023-11-07T05:31:56Z",
"due": "2023-12-25",
"origin": {
"requirementId": "<string>",
"label": "<string>"
}
}
]
}
],
"bought": [
{
"id": "<string>",
"version": "<string>",
"placeId": "<string>",
"name": "<string>",
"quantity": "<string>",
"section": "<string>",
"bought": true,
"placeConfidence": "confirmed",
"addedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"changedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"changedAt": "2023-11-07T05:31:56Z",
"due": "2023-12-25",
"origin": {
"requirementId": "<string>",
"label": "<string>"
}
}
],
"soon": [
{
"id": "<string>",
"version": "<string>",
"placeId": "<string>",
"name": "<string>",
"quantity": "<string>",
"section": "<string>",
"bought": true,
"placeConfidence": "confirmed",
"addedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"changedBy": {
"personId": "<string>",
"displayName": "<string>"
},
"changedAt": "2023-11-07T05:31:56Z",
"due": "2023-12-25",
"origin": {
"requirementId": "<string>",
"label": "<string>"
}
}
]
}{
"message": "Unauthorized",
"statusCode": 401
}{
"code": "<string>",
"details": {}
}{
"code": "request.timeout",
"correlationId": "<string>"
}{
"code": "request.timeout",
"correlationId": "<string>"
}Authorizations
sessiontoken
The session cookie set when you sign in to the web app.
Query Parameters
Maximum string length:
64