/** * IDp wrappers initializer */ function initialize() { parent::initialize(); // Provider api end-points $this->api->api_base_url = "https://api.instagram.com/v1"; $this->api->authorize_url = "https://api.instagram.com/oauth/authorise"; $this->api->request_token_url = "https://api.instagram.com/oauth/request_token"; $this->api->access_token_url = "https://api.instagram.com/oauth/access_token"; // if (isset($this->config['api_version']) && $this->config['api_version']) { // $this->api->api_base_url = "https://api.instagram.com/{$this->config['api_version']}/"; // } if (isset($this->config['authorize']) && $this->config['authorize']) { $this->api->authorize_url = "https://api.instagram.com/oauth/authorize"; } $this->api->curl_auth_header = false; }
/** * IDp wrappers initializer */ function initialize() { parent::initialize(); // Provider api end-points $this->api->api_base_url = "https://api.twitter.com/1.1/"; $this->api->authorize_url = "https://api.twitter.com/oauth/authenticate"; $this->api->request_token_url = "https://api.twitter.com/oauth/request_token"; $this->api->access_token_url = "https://api.twitter.com/oauth/access_token"; if (isset($this->config['api_version']) && $this->config['api_version']) { $this->api->api_base_url = "https://api.twitter.com/{$this->config['api_version']}/"; } if (isset($this->config['authorize']) && $this->config['authorize']) { $this->api->authorize_url = "https://api.twitter.com/oauth/authorize"; } $this->api->curl_auth_header = false; }