blib/lib/OAuthomatic/ServerDef/BitBucket.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
server
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package OAuthomatic::ServerDef::BitBucket;
2 # ABSTRACT: OAuth parameters for BitBucket
3  
4 use strict;
5 use warnings;
6 use OAuthomatic::Server;
7  
8  
9 sub server {
10 return OAuthomatic::Server->new(
11 oauth_temporary_url => 'https://bitbucket.org/api/1.0/oauth/request_token',
12 oauth_authorize_page => 'https://bitbucket.org/api/1.0/oauth/authenticate',
13 oauth_token_url => 'https://bitbucket.org/api/1.0/oauth/access_token',
14  
15 site_name => 'BitBucket',
16 site_client_creation_desc => "BitBucket OAuth management page",
17 # No simple URL
18 # site_client_creation_page => https://bitbucket.org/account/user/YOUR-BITBUCKET-NICK/api
19 site_client_creation_help => <<"END",
20 Log into BitBucket. Select <Manage accont> (from the popup on your
21 avatar in right-top corner), then <OAuth> (Access Management section
22 in the left menu). Click <Add consumer> button and fill the form. Use
23 <Key> as client key and <Secret> as client secret.",
24 END
25 );
26 }
27  
28 1;
29  
30 __END__
31  
32 =pod
33  
34 =encoding UTF-8
35  
36 =head1 NAME
37  
38 OAuthomatic::ServerDef::BitBucket - OAuth parameters for BitBucket
39  
40 =head1 VERSION
41  
42 version 0.0201
43  
44 =head1 DESCRIPTION
45  
46 Definition of L<OAuthomatic::Server> for L<http://bitbucket.org>. Allows
47 one to specify C<server =E<gt> 'BitBucket'> while constructing L<OAuthomatic> objects.
48  
49 =head1 AUTHOR
50  
51 Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
52  
53 =head1 COPYRIGHT AND LICENSE
54  
55 This software is copyright (c) 2015 by Marcin Kasperski.
56  
57 This is free software; you can redistribute it and/or modify it under
58 the same terms as the Perl 5 programming language system itself.
59  
60 =cut