Home  >  Article  >  php教程  >  携程基票 sdk

携程基票 sdk

PHP中文网
PHP中文网Original
2016-05-26 08:18:391050browse

1. [代码][PHP]代码    

<?php
/* PHP SDK
 * @version 2.0.0
 * @author magicsky0@163.com
 * @copyright © 2014, Ctrip Corporation. All rights reserved.
 */
date_default_timezone_set(&#39;Asia/Shanghai&#39;);

define( "CU_DEVELOP", false ); // 是否开启开发者模式,打印调试信息
define( "CU_ROOT", str_replace(&#39;\\&#39;,&#39;/&#39;,dirname(__FILE__))."/" );
define( "CU_CLASS_PATH", CU_ROOT."class/" );
define( "CU_COMM_PATH", CU_ROOT."comm/" );
define( "CU_DATA_PATH", CU_ROOT."data/" );

if( !defined("CU_TOKEN_PATH") )
{
	define( "CU_TOKEN_PATH", CU_DATA_PATH."json" ); // 重新定义路径即可覆盖授权文件
}

require CU_CLASS_PATH."CU.class.php";

                                   

2. [文件]     jipiao-sdk.zip ~ 343KB    

携程基票 sdkjipiao-sdk.zip

         

                                       


                   

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn