madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r11810: LJSUP-11962: change server authorization...

Committer: sbelyaev
LJSUP-11962: change server authorization to http://oauth.vk.com/
U   trunk/cgi-bin/LJ/Client/Vkontakte.pm
U   trunk/cgi-bin/LJ/Identity/Vkontakte.pm
Modified: trunk/cgi-bin/LJ/Client/Vkontakte.pm
===================================================================
--- trunk/cgi-bin/LJ/Client/Vkontakte.pm	2012-04-26 09:51:11 UTC (rev 11809)
+++ trunk/cgi-bin/LJ/Client/Vkontakte.pm	2012-04-26 10:06:23 UTC (rev 11810)
@@ -33,7 +33,7 @@
     $opts->{'client_id'}        ||= $LJ::VKONTAKTE_CONF->{'client_id'};
     $opts->{'response_type'}    ||= 'code';
 
-    my $uri = URI->new('http://api.vkontakte.ru/oauth/authorize');
+    my $uri = URI->new('http://api.vk.com/oauth/authorize');
     $uri->query_form(%$opts);
     return $uri->as_string;
 }
@@ -53,7 +53,7 @@
     $opts->{'client_id'}        ||= $LJ::VKONTAKTE_CONF->{'client_id'};
     $opts->{'client_secret'}    ||= $LJ::VKONTAKTE_CONF->{'client_secret'};
 
-    my $uri = URI->new('https://api.vkontakte.ru/oauth/token');
+    my $uri = URI->new('https://api.vk.com/oauth/token');
     $uri->query_form(%$opts);
 
     my $ua = $class->get_useragent();
@@ -109,7 +109,7 @@
 
     my $ua = $class->get_useragent();
 
-    my $uri = URI->new( 'https://api.vkontakte.ru/method/' . $method );
+    my $uri = URI->new( 'https://api.vk.com/method/' . $method );
     $uri->query_form( %$params );
 
     my $res = $ua->get( $uri->as_string );

Modified: trunk/cgi-bin/LJ/Identity/Vkontakte.pm
===================================================================
--- trunk/cgi-bin/LJ/Identity/Vkontakte.pm	2012-04-26 09:51:11 UTC (rev 11809)
+++ trunk/cgi-bin/LJ/Identity/Vkontakte.pm	2012-04-26 10:06:23 UTC (rev 11810)
@@ -65,7 +65,7 @@
     ## INITIALIZE USER PROFILE
 
     my $name = $userdata->{'first_name'} . ' ' . $userdata->{'last_name'};
-    my $link = 'http://vkontakte.ru/' . $userdata->{'domain'};
+    my $link = 'http://vk.com/' . $userdata->{'domain'};
 
     # these are pretty much essential and cannot be changed by the
     # user: the access token we're using to communicate on the user's

Tags: ljcom, madeon, pm, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments