Authentication ==============

To access Poplidays promotions and booking datas, you need to register with Poplidays REST API service and agree to the Terms of Service.

2 steps to register:

  • The Poplidays registration service provides you a Poplidays REST API Key {api-key} that is associated with a signer passphrase {passphrase}.
  • Adding a reference to the Poplidays REST API Key and signing request parameters with the signer passphrase

How to sign your request

The signature process is based on Amazon Web Services authentication. See the example bellow to know how to sign your request.

  1. Prepare your REST API call
  
https://api.poplidays.com/v2/stays/search?pageindex=0&pagesize=12&q=hendaye&features=OVEN&features=FREEZER&minprice=100  
  1. Combine query path, parameters and values (sorted by name) together
  
{passphrase}:/v2/stays/search:client:{api-key}:features:FREEZER/OVEN:minprice:100:pageindex:0:pagesize:12:q:hendaye  
  1. Hash (SHA-1) the combination

  2. Performs the REST API call with your API Key {api-key} and the hashed combination {hashed-combination}

  
https://api.poplidays.com/v2/stays/search?pageindex=0&pagesize=12&q=hendaye&features=OVEN&features=FREEZER&minprice=100&client={api-key}&signature={hashed-combination} 

Note: the Java API client performs this operation for you