Created
April 12, 2014 19:41
-
-
Save toritori0318/10553050 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use WebService::Dropbox; | |
my $app = '/'; | |
my $dropbox = WebService::Dropbox->new({ | |
key => 'xxxxxx', # App Key | |
secret => 'xxxxxx' # App Secret | |
}); | |
# get access token | |
my $url = $dropbox->login or die $dropbox->error; | |
warn "Please Access URL and press Enter: $url"; | |
<STDIN>; | |
$dropbox->auth or die $dropbox->error; | |
warn "access_token: " . $dropbox->access_token; | |
warn "access_secret: " . $dropbox->access_secret; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment