Example #1
0
File: blog.php Project: rafi/apis
 /**
  * Sets the base URL.
  *
  * Base hostname format is defined here: http://www.tumblr.com/docs/en/api/v2#overview
  *
  * @param   array  $options
  * @return  mixed
  */
 public function __construct(array $options = NULL)
 {
     if (!isset($options['base_hostname'])) {
         throw new Kohana_OAuth_Exception('Required option not passed: base_hostname must be provided');
     }
     // Set base URL
     $this->base_url .= "/blog/{$options['base_hostname']}";
     parent::__construct($options);
 }
Example #2
0
File: user.php Project: rafi/apis
 /**
  * Sets the base base URL.
  *
  * @param   array  $options
  * @return  void
  */
 public function __construct(array $options = NULL)
 {
     // Set base URL
     $this->base_url .= '/user';
     parent::__construct($options);
 }