Skip to content

Commit

Permalink
.gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
paulslugocki committed Dec 15, 2015
1 parent ed1296e commit dc79fc2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
config.php
src/config.php
src/examples/config.php
10 changes: 10 additions & 0 deletions config.php
@@ -0,0 +1,10 @@
<?php
include('src/tourcms.php');

use TourCMS\Utils\TourCMS as TourCMS;

$foo = new TourCMS(126, "5aed2d3d69ea", "simplexml");

$foo->test_environment();

?>
21 changes: 21 additions & 0 deletions src/config.php
@@ -0,0 +1,21 @@
<?php
// Marketplace account ID
// Leave this as zero if you are a supplier (i.e. not a Marketplace partner)
$marketplace_account_id = 0;

// Channel ID
// Leave this as zero if you are a Marketplace partner (i.e. not a supplier)
$channel_id = 3930;

// API Private Key (log in to TourCMS to get yours)
$api_private_key = "0df0db4dc340";

// Result type required
// 'raw' or 'simplexml', if not supplied defaults to 'raw'
$result_type = 'simplexml';

// Include the TourCMS library
include 'tourcms.php';

$tc = new TourCMS($marketplace_account_id, $api_private_key, "simplexml");
?>

0 comments on commit dc79fc2

Please sign in to comment.