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.012
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 This will grant gist rights to the App::Nopaste. Don't worry, you can
24 revoke access rights anytime from the GitHub profile settings. Search
25 for "token" in response and export it as the "GITHUB_OAUTH_TOKEN"
26 environment variable.
27
28 Alternatively, you can export the "GITHUB_USER" and "GITHUB_PASSWORD"
29 environment variables, just like for the gist
30 <https://github.com/defunkt/gist> utility.
31
32 You can also simply store your credentials in plaintext in ~/.github as
33 in:
34
35 login bob
36 password ilikeducks
37
38 That's it!
39
41 Bugs may be submitted through the RT bug tracker
42 <https://rt.cpan.org/Public/Dist/Display.html?Name=App-Nopaste> (or
43 bug-App-Nopaste@rt.cpan.org <mailto:bug-App-Nopaste@rt.cpan.org>).
44
46 Ricardo SIGNES, <rjbs@cpan.org>
47
49 This software is copyright (c) 2008 by Shawn M Moore.
50
51 This is free software; you can redistribute it and/or modify it under
52 the same terms as the Perl 5 programming language system itself.
53
54
55
56perl v5.28.0 2018-07-08 App::Nopaste::Service::Gist(3)