/** * Internal: Initialize adapter. This method isn't intended for public consumption. * * Basically on initializers we feed defaults values to \OAuth2\Template::initialize() * * let*() methods are similar to set, but 'let' will not overwrite the value if its already set */ function initialize() { parent::initialize(); $this->letApplicationKey($this->getAdapterConfig('keys', 'key')); $this->letApplicationSecret($this->getAdapterConfig('keys', 'secret')); $this->letEndpointRedirectUri($this->getHybridauthEndpointUri()); $this->letEndpointBaseUri('https://api.twitter.com/1.1/'); $this->letEndpointAuthorizeUri('https://api.twitter.com/oauth/authenticate'); $this->letEndpointRequestTokenUri('https://api.twitter.com/oauth/request_token'); $this->letEndpointAccessTokenUri('https://api.twitter.com/oauth/access_token'); }
/** * Internal: Initialize adapter. This method isn't intended for public consumption. * * Basically on initializers we feed defaults values to \OAuth2\Template::initialize() * * let*() methods are similar to set, but 'let' will not overwrite the value if its already set */ function initialize() { parent::initialize(); $this->letApplicationKey($this->getAdapterConfig('keys', 'key')); $this->letApplicationSecret($this->getAdapterConfig('keys', 'secret')); $scope = $this->getAdapterConfig('scope') ? $this->getAdapterConfig('scope') : 'r_basicprofile+r_emailaddress+rw_nus'; $this->letEndpointRedirectUri($this->getHybridauthEndpointUri()); $this->letEndpointBaseUri('http://social.yahooapis.com/v1/'); $this->letEndpointAuthorizeUri('https://api.login.yahoo.com/oauth/v2/request_auth'); $this->letEndpointRequestTokenUri('https://api.login.yahoo.com/oauth/v2/get_request_token'); $this->letEndpointAccessTokenUri('https://api.login.yahoo.com/oauth/v2/get_token'); }
/** * Internal: Initialize adapter. This method isn't intended for public consumption. * * Basically on initializers we feed defaults values to \OAuth2\Template::initialize() * * let*() methods are similar to set, but 'let' will not overwrite the value if its already set */ function initialize() { parent::initialize(); $this->letApplicationKey($this->getAdapterConfig('keys', 'key')); $this->letApplicationSecret($this->getAdapterConfig('keys', 'secret')); $scope = $this->getAdapterConfig('scope') ? $this->getAdapterConfig('scope') : 'r_basicprofile+r_emailaddress+rw_nus'; $this->letEndpointRedirectUri($this->getHybridauthEndpointUri()); $this->letEndpointBaseUri('https://api.linkedin.com'); $this->letEndpointAuthorizeUri('https://www.linkedin.com/uas/oauth/authenticate'); $this->letEndpointRequestTokenUri('https://api.linkedin.com/uas/oauth/requestToken?scope=' . $scope); $this->letEndpointAccessTokenUri('https://api.linkedin.com/uas/oauth/accessToken'); }