Hotelspro Api Client
This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.
- API version: 2.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.GoClientCodegen
Put the package under your project folder and add the following in import:
"./hotelspro_client"
All URIs are relative to https://localhost/api/v2
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | AvailabilityProductCodeGet | Get /availability/{product_code} | Availability with Product Code |
DefaultApi | BookProvisionCodePost | Post /book/{provision_code} | Book with Provision Code |
DefaultApi | BookingsBookingCodeGet | Get /bookings/{booking_code} | Get Booking Detail |
DefaultApi | BookingsGet | Get /bookings/ | Get Booking List |
DefaultApi | CancelBookingCodePost | Post /cancel/{booking_code} | Cancel Booking with Booking Code |
DefaultApi | HotelAvailabilityGet | Get /hotel-availability/ | Hotel Availability with Hotel Code and Search Code |
DefaultApi | ProvisionProductCodePost | Post /provision/{product_code} | Provision with Product Code |
DefaultApi | SearchPost | Post /search/ | Search with Hotel Code(Hotel Code List) or Destination Code or Geolocation |
- AvailabilityResponse
- BookResponse
- BookResponseConfirmationNumbers
- BookResponseHotelPaymentInfo
- BookResponseRooms
- BookingListResponse
- CancelResponse
- ErrorDetail
- ErrorDetails
- ErrorDetailsDetail
- HotelAvailabilityResponse
- ModelError
- Pax
- Policy
- Product
- ProvisionResponse
- Results
- Room
- SearchResponse
- Type: HTTP basic authentication
Example
auth := context.WithValue(context.TODO(), sw.ContextBasicAuth, sw.BasicAuth{
UserName: "username",
Password: "password",
})
r, err := client.Service.Operation(auth, args)