Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed1296e
commit dc79fc2
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
config.php | ||
src/config.php | ||
src/examples/config.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
include('src/tourcms.php'); | ||
|
||
use TourCMS\Utils\TourCMS as TourCMS; | ||
|
||
$foo = new TourCMS(126, "5aed2d3d69ea", "simplexml"); | ||
|
||
$foo->test_environment(); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
?> |