App::Nopaste::Service::Gist - http://gist.github.com/
version 1.003
In order to create gists you have to get an oauth token. That could be easily obtained via curl:
curl -X POST 'https://USERNAME:PASSWORD@api.github.com/authorizations' \ -d '{"scopes":["gist"],"note":"App::Nopaste"}'
or you can use this module to do the same:
perl -MApp::Nopaste::Service::Gist -e 'App::Nopaste::Service::Gist->create_token'
This will grant gist rights to the App::Nopaste, don't worry you can revoke access rights anytime from the GitHub profile settings. Search for token in response and export it as GITHUB_OAUTH_TOKEN environment variable.
token
GITHUB_OAUTH_TOKEN
Alternatively, you can export the GITHUB_USER and GITHUB_PASSWORD environment variables, just like for the gist utility.
GITHUB_USER
GITHUB_PASSWORD
That's it!
Ricardo SIGNES, <rjbs@cpan.org>
<rjbs@cpan.org>
To install App::Nopaste, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Nopaste
CPAN shell
perl -MCPAN -e shell install App::Nopaste
For more information on module installation, please visit the detailed CPAN module installation guide.