This is a simple sample php REST API example that demos how to authenticate and consume Sabre Dev Studio REST APIs.
This Sample Code is provided 'as is' for the purposes of demonstrating how to consume Sabre Dev Studio REST API from a php Web application.
A security flag exists on this module of code that prevents exposure of users app key on client browser.
This means that the dsbridge.php file should NOT be called directly, but usually using an AJAX request from other web client, which is your main "site" under the same server (shared php session).
Include this instruction on your "index.php" file, that authorizes this page to makecalls to phpbridge.
This requires to have an existing Sabre Dev Studio Key.
For more information on registering to get a Test Key account please visit Sabre Dev Studio@http://developer.sabre.com and how to authenticate and build your key visit https://developer.sabre.com/docs/read/rest_basics/authentication
Sabre API documentation and resources can be found http://developer.sabre.com
Connections to the API are done over a secured SSL connection. Many API server checks for a valid SSL certificate. Valid certificates have a correct signature-chain. The cacert.pem file contains a list of all public certificates for root certificate authorities. You can find more information about this file at http://curl.haxx.se/docs/caextract.html.
This software and any compiled programs created using this software are furnished “as is” without warranty of any kind, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. No oral or written information or advice given by Sabre, its agents or employees shall create a warranty or in any way increase the scope of this warranty, and you may not rely on any such information or advice. Sabre does not warrant, guarantee, or make any representations regarding the use, or the results of the use, of this software, compiled programs created using this software, or written materials in terms of correctness, accuracy, reliability, currentness, or otherwise. The entire risk as to the results and performance of this software and any compiled applications created using this software is assumed by you. Neither Sabre nor anyone else who has been involved in the creation, production or delivery of this software shall be liable for any direct, indirect, consequential, or incidental damages (including damages for loss of business profits, business interruption, loss of business information, and the like) arising out of the use of or inability to use such product even if Sabre has been advised of the possibility of such damages.