List offer activity
curl --request GET \
--url https://coreapi.io/api/offers/{id}/activities \
--header 'Authorization: Bearer <token>'import requests
url = "https://coreapi.io/api/offers/{id}/activities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://coreapi.io/api/offers/{id}/activities', 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://coreapi.io/api/offers/{id}/activities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"id": "<string>",
"type": "created",
"occurredAt": "2023-11-07T05:31:56Z",
"actor": "<string>",
"metadata": {},
"links": [
{
"label": "<string>",
"href": "<string>",
"external": true
}
]
}
]
}Angebote
List offer activity
Beta. This endpoint is unstable and may still change without notice. Pin against the dated version and watch the changelog.
Returns the offer activity feed. Never empty: it always contains at least the creation entry.
GET
/
api
/
offers
/
{id}
/
activities
List offer activity
curl --request GET \
--url https://coreapi.io/api/offers/{id}/activities \
--header 'Authorization: Bearer <token>'import requests
url = "https://coreapi.io/api/offers/{id}/activities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://coreapi.io/api/offers/{id}/activities', 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://coreapi.io/api/offers/{id}/activities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"id": "<string>",
"type": "created",
"occurredAt": "2023-11-07T05:31:56Z",
"actor": "<string>",
"metadata": {},
"links": [
{
"label": "<string>",
"href": "<string>",
"external": true
}
]
}
]
}Autorisierungen
API token of the organisation. Send it as Authorization: Bearer api_... The token is bound to exactly one organisation.
Pfadparameter
Offer ID (ULID).
Antwort
The activity feed.
Offer activity feed. Never empty: always contains at least the creation entry.
Show child attributes
Show child attributes
War diese Seite hilfreich?