X-Git-Url: http://git.shiar.net/sc2-widget/blobdiff_plain/15085024b6df2d7bb16285c5d420772bc9732ac1..72f5c887236708189bf8cc86b60b932617c3c756:/getsc2clan diff --git a/getsc2clan b/getsc2clan index b23d2ac..f3df754 100755 --- a/getsc2clan +++ b/getsc2clan @@ -12,9 +12,8 @@ my ($profileid, $clanmatch) = @ARGV; # clan host and name $profileid and $profileid =~ /\A\d+\z/ or die "Usage: $0 []\n"; -my $bliz = LWP::Authen::OAuth2->new( - client_id => '7f0f95ac9529474f854ee8d68a12c3e0', - client_secret => 'Kfa8n98UAaDo4brOeqxe9C2kJE9pqpSd', +my %auth = do './.blizzard.passwd.pl' or die "no auth setup: $!\n"; +my $bliz = LWP::Authen::OAuth2->new(%auth, token_endpoint => 'https://us.battle.net/oauth/token', request_required_params => [qw( client_id client_secret grant_type )], );