Skip to content

Returns a list of the times the user's pass was created.

GET
/api/user/{userId}/passhistory

Authorizations

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

Parameters

Path Parameters

userId*

which user's history to return

Typeinteger
Required

Responses

Success.
JSON
[
{
"foodsaverId": 0,
"date": "string",
"actor": null
}
]
Authorization
api_key
Variables
Key
Value
userId*
cURL
curl -X GET \
'http://localhost/api/user/{userId}/passhistory'

Samples

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