Man pages sections > man3 > App::Nopaste::Service::Gist

App::Nopaste::Service::Gist - Service provider for GitHub gist -

App::Nopaste::Service::Gist(3pm) User Contributed Perl Documentation App::Nopaste::Service::Gist(3pm)


App::Nopaste::Service::Gist - Service provider for GitHub gist -


version 1.011

GitHub Authorization

In order to create gists you have to get an oauth token. That could be easily obtained via curl:
    curl -X POST '' \
        -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 the "GITHUB_OAUTH_TOKEN" environment variable.
Alternatively, you can export the "GITHUB_USER" and "GITHUB_PASSWORD" environment variables, just like for the gist <> utility.
You can also simply store your credentials in plaintext in ~/.github as in:
    login bob
    password ilikeducks
That's it!


Ricardo SIGNES, "<>"


Bugs may be submitted through the RT bug tracker <> (or <>).


Shawn M Moore, <> This software is copyright (c) 2008 by Shawn M Moore.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2017-08-27 perl v5.26.0