API: expedia.com

API: http://developer.ean.com/docs/hotel-info/examples/rest-content-options
Requirements:
  • Install the free WordPress Plugin Insert PHP for putting together the signature-key
  • Use “_symbol_at_” in the template when the JSON-key contains @, otherwise the twig-parser crashes

JCI-Syntax: [jsoncontentimporterpro url=http://api.json-content-importer.com/extra/json/expedia/ean-com-1.json?sid=[insert_php] $apiKey = ‘xxx-YourAPIkey-xxx’; $secret = ‘xxYourSecretxx’; $timestamp = gmdate(‘U’); // 1427233130 (Tue, 24 Mar 2015 21:38:50 +0000) $sig = md5($apiKey . $secret . $timestamp); echo $sig; [/insert_php] parser=twig] HotelInformationResponse.customerSessionId: {{HotelInformationResponse.customerSessionId}} HotelInformationResponse.HotelSummary.name: {{HotelInformationResponse.HotelSummary.name}} HotelInformationResponse.@hotelId: {{HotelInformationResponse._symbol_at_h_symbol_exclamationmark_ot_symbol_exclamationmark_elI_symbol_at_d}} HotelInformationResponse.HotelSummary.@order: {{HotelInformationResponse.HotelSummary._symbol_at_order}} [/jsoncontentimporterpro]
Example: HotelInformationResponse.customerSessionId: 0ABEE873-A27-591-32-DAA65BD3 HotelInformationResponse.HotelSummary.name: MCM Elegante Hotel & Suites HotelInformationResponse.@hotelId: 1!16@@347 HotelInformationResponse.HotelSummary.@order: 330