Skip to content

Commit

Permalink
New authorization and API url on "Odnoklassniki" (#73)
Browse files Browse the repository at this point in the history
* Update OdnoklassnikiOAuth2Service.php
  • Loading branch information
mike-kramer authored and Nodge committed Apr 9, 2017
1 parent efc8270 commit 6a5dfaa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/services/OdnoklassnikiOAuth2Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ class OdnoklassnikiOAuth2Service extends Service
protected $scopes = [];
protected $scopeSeparator = ';';
protected $providerOptions = [
'authorize' => 'http://www.odnoklassniki.ru/oauth/authorize',
'access_token' => 'http://api.odnoklassniki.ru/oauth/token.do',
];
protected $baseApiUrl = 'http://api.odnoklassniki.ru/fb.do';
'authorize' => 'https://connect.ok.ru/oauth/authorize',
'access_token' => 'https://api.ok.ru/oauth/token.do',
];
protected $baseApiUrl = 'https://api.ok.ru/api/';

protected $tokenDefaultLifetime = 1500; // about 25 minutes
protected $validateState = false;

protected function fetchAttributes()
{
$info = $this->makeSignedRequest('', [
$info = $this->makeSignedRequest('', [
'query' => [
'method' => 'users.getCurrentUser',
'format' => 'JSON',
Expand Down

0 comments on commit 6a5dfaa

Please sign in to comment.