Skip to content

Returns all current baskets of the user.

GET
/api/user/current/baskets

Returns 200 and a list of baskets or 401 if not logged in.

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Responses

Authorization
api_key
cURL
curl -X GET \
'http://localhost/api/user/current/baskets'

Samples

cURL
curl -X GET http://localhost/api/user/current/baskets
JavaScript
fetch("http://localhost/api/user/current/baskets")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/user/current/baskets");
Python
import requests
response = requests.get("http://localhost/api/user/current/baskets")
print(response.json())