Skip to content

metglobal/go_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for hotelspro_client

Hotelspro Api Client

Overview

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

Installation

Put the package under your project folder and add the following in import:

    "./hotelspro_client"

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

basicAuth

  • 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)

Author

[email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published