Skip to content

Commit c255502

Browse files
committed
#19140 - Implement get reservation changes
1 parent 6f9a2f5 commit c255502

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { axios } from "@pipedream/platform";
2+
3+
export default {
4+
name: "Get Reservation",
5+
description: "Fetches a reservation by ID from Booking Experts",
6+
key: "booking_experts-get-reservation",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
booking_experts: {
11+
type: "app",
12+
app: "booking_experts",
13+
},
14+
reservationId: {
15+
type: "string",
16+
label: "Reservation ID",
17+
description: "ID of the reservation to retrieve",
18+
},
19+
},
20+
async run({ $ }) {
21+
return await axios($, {
22+
method: "GET",
23+
url: `https://api.bookingexperts.com/v3/reservations/${this.reservationId}`,
24+
headers: {
25+
"X-API-KEY": this.booking_experts.$auth.api_key,
26+
"accept": "application/vnd.api+json",
27+
},
28+
});
29+
},
30+
};

0 commit comments

Comments
 (0)