Exemplo n.º 1
0
Arquivo: blog.php Projeto: 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);
 }
Exemplo n.º 2
0
Arquivo: user.php Projeto: 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);
 }