The hoteliga API

Examples & Tools

Examples

In the pages of the following table, you can find examples of how to implement your calls to the API in different programming languages.

C# Examples
Python Examples
PHP Examples

Tools

Fiddler

Fiddler is an HTTP debugging proxy server application. With Fiddler one can send actual requests to an API endpoint and receive their responses. It can be used to evaluate the validity of sent requests and compare the actual responses with the expected ones. Below you will find an example of getting the bearer token with a POST request and an example of retrieving customer's data by ID with a GET request.

Token Request

In order to send request to get the bearer Token with Fiddler select Composer tab, prepare fields as shown in the image below and click on the Execute button. The result section indicates if the request was successful.



With double click on the result the Inspectors tab opens, displaying response's content.




Get customer's data

Sending request to get data of customer with Id 1. Note that Id is required in the url of the request.



A successful request results in response that contains informations of requested customer.