本文整理汇总了PHP中apiClient::setDeveloperSecret方法的典型用法代码示例。如果您正苦于以下问题:PHP apiClient::setDeveloperSecret方法的具体用法?PHP apiClient::setDeveloperSecret怎么用?PHP apiClient::setDeveloperSecret使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类apiClient
的用法示例。
在下文中一共展示了apiClient::setDeveloperSecret方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: apiClient
* @package Mashery_IO_Wraps_Rovi
* @author Neil Mansilla <neil@mashery.com>
* @license https://raw.github.com/mashery/io-wraps-rovi-php/master/LICENSE.txt MIT License
* @version GIT: $Id:$
* @link https://github.com/mashery/io-wraps-rovi-php/
*
*/
// Client library (network/authentication)
require_once "../google-api-php-client/src/apiClient.php";
// Rovi resource/method library
require_once "../google-api-php-client/src/contrib/apiMetadataandsearchapiService.php";
// Instantiate client
$client = new apiClient();
// Set credentials
$client->setDeveloperKey("YOUR_KEY_HERE");
$client->setDeveloperSecret("YOUR_SECRET_HERE");
// Instantiate service
$service = new apiMetadataandsearchapiService($client);
// Initialize globals
$searchAPI = array();
$resultsObj = array();
$searchQuery = $_GET['searchQuery'];
$database = "";
$entityType = "";
$searchResultCount = 0;
if ($searchQuery) {
$searchQuery = $_GET['searchQuery'];
$database = $_GET['database'];
$entityType = $_GET['entityType'];
$searchAPI = $service->SearchMethods->Search($database, $entityType, $searchQuery, array("format" => "json"));
$resultsObj = $searchAPI['searchResponse'];