File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
components/booking_experts/actions Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 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+ } ;
You can’t perform that action at this time.
0 commit comments