1App::Nopaste::Service::UGsiesrt(C3o)ntributed Perl DocumAepnpt:a:tNioopnaste::Service::Gist(3)
2
3
4
6 App::Nopaste::Service::Gist - Service provider for GitHub gist -
7 http://gist.github.com/
8
10 version 1.013
11
13 In order to create gists you have to get an oauth token. That could be
14 easily obtained via curl:
15
16 curl -X POST 'https://USERNAME:PASSWORD@api.github.com/authorizations' \
17 -d '{"scopes":["gist"],"note":"App::Nopaste"}'
18
19 or you can use this module to do the same:
20
21 perl -MApp::Nopaste::Service::Gist -e 'App::Nopaste::Service::Gist->create_token'
22
23 You can also generate a token by navigating to
24 <https://github.com/settings/tokens> and generate a new token with the
25 'Create gists' ability.
26
27 Then, export the resulting token as the the "GITHUB_OAUTH_TOKEN"
28 environment variable. This will grant gist rights to App::Nopaste (or
29 anything else that Don't worry, you can revoke access rights anytime
30 from the GitHub profile settings.
31
32 Alternatively, you can export the "GITHUB_USER" and "GITHUB_PASSWORD"
33 environment variables, just like for the gist
34 <https://github.com/defunkt/gist> utility.
35
36 You can also simply store your credentials in plaintext in ~/.github as
37 in:
38
39 login bob
40 password ilikeducks
41
42 That's it!
43
45 Bugs may be submitted through the RT bug tracker
46 <https://rt.cpan.org/Public/Dist/Display.html?Name=App-Nopaste> (or
47 bug-App-Nopaste@rt.cpan.org <mailto:bug-App-Nopaste@rt.cpan.org>).
48
50 Ricardo SIGNES, <rjbs@cpan.org>
51
53 This software is copyright (c) 2008 by Shawn M Moore.
54
55 This is free software; you can redistribute it and/or modify it under
56 the same terms as the Perl 5 programming language system itself.
57
58
59
60perl v5.34.0 2022-01-20 App::Nopaste::Service::Gist(3)