Shawn M Moore > App-Nopaste-0.90 > App::Nopaste::Service::Gist

Download:
App-Nopaste-0.90.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  1
View/Report Bugs
Source   Latest Release: App-Nopaste-0.96

NAME ^

App::Nopaste::Service::Gist - http://gist.github.com/

GitHub Authorization ^

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.

That's it!

AUTHOR ^

Ricardo SIGNES, <rjbs@cpan.org>

syntax highlighting: