GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

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

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

version 1.013

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'

You can also generate a token by navigating to <https://github.com/settings/tokens> and generate a new token with the 'Create gists' ability.

Then, export the resulting token as the the "GITHUB_OAUTH_TOKEN" environment variable. This will grant gist rights to App::Nopaste (or anything else that Don't worry, you can revoke access rights anytime from the GitHub profile settings.

Alternatively, you can export the "GITHUB_USER" and "GITHUB_PASSWORD" environment variables, just like for the gist <https://github.com/defunkt/gist> utility.

You can also simply store your credentials in plaintext in ~/.github as in:

    login bob
    password ilikeducks

That's it!

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=App-Nopaste> (or bug-App-Nopaste@rt.cpan.org <mailto:bug-App-Nopaste@rt.cpan.org>).

Ricardo SIGNES, <rjbs@cpan.org>

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.

2019-07-23 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.