Skip to content

Instantly share code, notes, and snippets.

@toritori0318
Created April 12, 2014 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toritori0318/10553050 to your computer and use it in GitHub Desktop.
Save toritori0318/10553050 to your computer and use it in GitHub Desktop.
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