• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Eden_Google_Error类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Eden_Google_Error的典型用法代码示例。如果您正苦于以下问题:PHP Eden_Google_Error类的具体用法?PHP Eden_Google_Error怎么用?PHP Eden_Google_Error使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Eden_Google_Error类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($token, $developerId)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string');
     $this->_token = $token;
     $this->_developerId = $developerId;
 }
开发者ID:taqmaninw,项目名称:apipack,代码行数:7,代码来源:youtube.php


示例2: delete

 /**
  * Delete a message 
  *
  * @param string
  * @param string
  * @return array
  */
 public function delete($messageId, $userId = self::DEFAULT_VALUE)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string');
     //argument 2 must be a string
     return $this->_delete(sprintf(self::URL_YOUTUBE_MESSAGE_GET, $userId, $messageId));
 }
开发者ID:brynner,项目名称:postr,代码行数:14,代码来源:message.php


示例3: __construct

 public function __construct($clientId, $clientSecret, $redirect)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string')->argument(3, 'string');
     //Argument 4 must be a string
     parent::__construct($clientId, $clientSecret, $redirect, self::REQUEST_URL, self::ACCESS_URL);
 }
开发者ID:nikkobautista,项目名称:laravel-bootstrap-boilerplate,代码行数:7,代码来源:oauth.php


示例4: delete

 /**
  * Delete a photo
  *
  * @param string
  * @param string
  * @return array
  */
 public function delete($contactId, $userEmail = self::DAFAULT)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string');
     //argument 2 must be a string
     return $this->_delete(sprintf(self::URL_CONTACTS_GET_IMAGE, $userEmail, contactId), true);
 }
开发者ID:annaqin,项目名称:eden,代码行数:14,代码来源:photo.php


示例5: dislike

 /**
  * Dislike a video
  *
  * @param string
  * @return array
  */
 public function dislike($videoId)
 {
     //argument 1 must be a string
     Eden_Google_Error::i()->argument(1, 'string');
     //make a xml template
     $query = Eden_Template::i()->set(self::VALUE, self::DISLIKE)->parsePHP(dirname(__FILE__) . '/template/like.php');
     return $this->_post(sprintf(self::URL_YOUTUBE_RATINGS, $videoId), $query);
 }
开发者ID:annaqin,项目名称:eden,代码行数:14,代码来源:ratings.php


示例6: __construct

 public function __construct($api_key, $token)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string');
     Eden_Google_Error::i()->argument(2, 'string');
     $this->_google_api_key = $api_key;
     $this->_token = $token;
 }
开发者ID:annaqin,项目名称:eden,代码行数:8,代码来源:latitude.php


示例7: getMeta

 /**
  * Returns the meta of the last call
  *
  * @return array
  */
 public function getMeta($key = NULL)
 {
     Eden_Google_Error::i()->argument(1, 'string', 'null');
     if (isset($this->_meta[$key])) {
         return $this->_meta[$key];
     }
     return $this->_meta;
 }
开发者ID:nikkobautista,项目名称:laravel-bootstrap-boilerplate,代码行数:13,代码来源:base.php


示例8: getSubtivity

 /**
  * Retrieve all user's subtivity
  *
  * @param string
  * @return array
  */
 public function getSubtivity($userId = self::DEFAULT_VALUE)
 {
     //argument 1 must be a string
     Eden_Google_Error::i()->argument(1, 'string');
     //populate fields
     $query = array(self::RESPONSE => self::JSON_FORMAT, self::VERSION => self::VERSION);
     return $this->_getResponse(sprintf(self::URL_YOUTUBE_SUBTIVITY, $userId), $query);
 }
开发者ID:brynner,项目名称:postr,代码行数:14,代码来源:activity.php


示例9: getResponse

 /**
  * Returns elevation information
  *
  * @param string latitude,longitude pair in string(e.g. "40.714728,-73.998672") 
  * @return array
  */
 public function getResponse($location, $sensor = 'false')
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string');
     //argument 2 must be a string
     $this->_query['locations'] = $location;
     $this->_query['sensor'] = $sensor;
     return $this->_getResponse(self::URL_MAP_ELEVATION, $this->_query);
 }
开发者ID:brynner,项目名称:postr,代码行数:15,代码来源:elevation.php


示例10: getResponse

 /**
  * Returns geocode information
  *
  * @param string
  * @param string
  * @return array
  */
 public function getResponse($address, $sensor = 'false')
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string');
     //argument 2 must be a string
     $this->_query['address'] = $address;
     $this->_query['sensor'] = $sensor;
     return $this->_getResponse(self::URL_MAP_GEOCODING, $this->_query);
 }
开发者ID:brynner,项目名称:postr,代码行数:16,代码来源:geocoding.php


示例11: upload

 /**
  * Upload video to youtube
  *
  * @return form
  */
 public function upload($uploadToken, $postUrl, $redirectUrl)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'object', 'string')->argument(2, 'object', 'string')->argument(3, 'string');
     //argument 3 must be a string
     //make a xml template
     $query = Eden_Template::i()->set(self::UPLOAD_TOKEN, $uploadToken)->set(self::REDIRECT_URL, $redirectUrl)->set(self::POST_URL, $postUrl)->parsePHP(dirname(__FILE__) . '/template/form.php');
     return $query;
 }
开发者ID:brynner,项目名称:postr,代码行数:14,代码来源:upload.php


示例12: getElevation

 /**
  * Returns elevation information
  *
  * @param string latitude,longitude pair in string(e.g. "40.714728,-73.998672") 
  * @return array
  */
 public function getElevation($location, $sensor = 'false')
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string');
     //argument 2 must be a string
     //populate paramenter
     $query = array('locations' => $ocation, 'sensor' => $sensor, 'path' => $this->_path, 'samples' => $this->_samples);
     //optional
     return $this->_getResponse(self::URL_MAP_ELEVATION, $query);
 }
开发者ID:nikkobautista,项目名称:laravel-bootstrap-boilerplate,代码行数:16,代码来源:elevation.php


示例13: checkoutForm

 /**
  * Returns a checkout form
  *
  * @param string
  * @param string|integer
  * @param string
  * @param string|integer
  * @param string 
  * @param boolean Set to false for live url
  * @return array
  */
 public function checkoutForm($itemName, $price, $description, $quantity, $currency = 'USD', $test = true)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string', 'int')->argument(3, 'string')->argument(4, 'string', 'int')->argument(5, 'string')->argument(6, 'bool');
     //argument 6 must be a booelean
     if ($test = true) {
         //set url to sandbox
         $url = sprintf(self::URL_TEST_CHECKOUT, $this->_merchantId);
     } else {
         //set url to live account
         $url = sprintf(self::URL_LIVE_CHECKOUT, $this->_merchantId);
     }
     //make a xml template
     $form = Eden_Template::i()->set('url', $url)->set('itemName', $itemName)->set('itemDescription', $description)->set('itemPrice', $price)->set('itemCurrency', $currency)->set('itemQuantity', $quantity)->set('merchantId', $this->_merchantId)->parsePHP(dirname(__FILE__) . '/template/form.php');
     return $form;
 }
开发者ID:taqmaninw,项目名称:apipack,代码行数:27,代码来源:form.php


示例14: getActivityList

 /**
  * List all of the people in the specified 
  * collection for a particular activity
  *
  * @param string
  * @param string
  * @return array
  */
 public function getActivityList($activityId, $collection)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string');
     //argument 1 must be a string
     //if the input value is not allowed
     if (!in_array($collection, array('plusoners', 'resharers'))) {
         //throw error
         Eden_Google_Error::i()->setMessage(Eden_Google_Error::INVALID_COLLECTION)->addVariable($collection)->trigger();
     }
     $this->_query[self::ACTIVITY_ID] = $activityId;
     $this->_query[self::COLLECTION] = $collection;
     return $this->_getResponse(sprintf(self::URL_PEOPLE_ACTIVITY, $activityId, $collection), $this->_query);
 }
开发者ID:annaqin,项目名称:eden,代码行数:22,代码来源:people.php


示例15: getChannelByRegion

 /**
  * Returns a collection of videos that match the API request parameters.
  *
  * @param string
  * @param string
  * @return array
  */
 public function getChannelByRegion($regionId, $feeds)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string');
     //argument 2 must be a string
     //if the input value is not allowed
     if (!in_array($feeds, array('most_viewed', 'most_subscribed'))) {
         //throw error
         Eden_Google_Error::i()->setMessage(Eden_Google_Error::INVALID_FEEDS_TWO)->addVariable($feeds)->trigger();
     }
     //populate parameters
     $query = array(self::VERSION => self::VERSION_TWO);
     return $this->_getResponse(sprintf(self::URL_YOUTUBE_REGION, $regionId, $feeds), $query);
 }
开发者ID:nikkobautista,项目名称:laravel-bootstrap-boilerplate,代码行数:21,代码来源:channel.php


示例16: getGoals

 /**
  * Returns lists of goals to which the user has access
  *
  * @param string
  * @param string
  * @param string
  * @return array
  */
 public function getGoals($accountId = self::ALL, $webPropertyId = self::ALL, $profileId = self::ALL)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string')->argument(3, 'string');
     //argument 3 must be a string
     //populate parameters
     $query = array(self::START_INDEX => $this->_startIndex, self::MAX_RESULTS => $this->_maxResults);
     //optional
     return $this->_getResponse(sprintf(self::URL_ANALYTICS_GOALS, $accountId, $webPropertyId, $profileId), $query);
 }
开发者ID:annaqin,项目名称:eden,代码行数:18,代码来源:management.php


示例17: __construct

 public function __construct($token)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string');
     $this->_token = $token;
 }
开发者ID:annaqin,项目名称:eden,代码行数:6,代码来源:userinfo.php


示例18: delete

 /**
  * Delete a group
  *
  * @param string
  * @param string
  * @return array
  */
 public function delete($groupId, $userEmail = self::DEFAULT_VALUE)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string');
     //argument 2 must be a string
     return $this->_delete(sprintf(self::URL_CONTACTS_GROUPS_GET, $userEmail, $groupId), true);
 }
开发者ID:annaqin,项目名称:eden,代码行数:14,代码来源:groups.php


示例19: delete

 /**
  * Delete a comment
  *
  * @param string
  * @param string
  * @return array
  */
 public function delete($videoId, $commentId)
 {
     //argument test
     Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string');
     //argument 2 must be a string
     return $this->_delete(sprintf(self::URL_YOUTUBE_COMMENTS, $videoId, $commentId));
 }
开发者ID:annaqin,项目名称:eden,代码行数:14,代码来源:comment.php


示例20: formatToXml

 /**
  * Well format xml  
  *
  * @param string|object
  * @return xml
  */
 public function formatToXml($query)
 {
     //argument 1 must be a string or object
     Eden_Google_Error::i()->argument(1, 'string', 'object');
     $xml = new DOMDocument();
     $xml->preserveWhiteSpace = false;
     $xml->formatOutput = true;
     $xml->loadXML($query);
     return $xml->saveXML();
 }
开发者ID:annaqin,项目名称:eden,代码行数:16,代码来源:base.php



注:本文中的Eden_Google_Error类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP EditPage类代码示例发布时间:2022-05-23
下一篇:
PHP EcomDev_Utils_Reflection类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap