NAME
OAuth2::Box - Authorize with Box.com
VERSION
version 0.03
SYNOPSIS
use OAuth2::Box;
my $box_oauth = OAuth2::Box->new(
client_id => 'app_client_id',
client_secret => 'app_client_secret',
redirect_uri => 'http://your.app.tld/auth',
);
my $authorization_url = $box_oauth->authorization_url(
state => 'authorized',
);
my $auth_token = $box_oauth->authorize(
code => '12345',
);
my ($auth_token, $info) = $box_oauth->authorize(
code => '12345',
);
my ($auth_token, $info) = $box_oauth->refresh_token(
refresh_token => '12abc42319de1a0',
);
METHODS
authorization_uri
authorize
refresh_token
AUTHOR
Renee Baecker <reneeb@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2013 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)