File Coverage

lib/OAuthomatic/ServerDef/LinkedIn.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             package OAuthomatic::ServerDef::LinkedIn;
2             # ABSTRACT: OAuth parameters for LinkedIn
3              
4 1     1   710 use strict;
  1         2  
  1         37  
5 1     1   4 use warnings;
  1         1  
  1         28  
6 1     1   309 use OAuthomatic::Server;
  0            
  0            
7              
8              
9             sub server {
10             return OAuthomatic::Server->new(
11             site_name => 'LinkedIn',
12              
13             oauth_temporary_url => 'https://api.linkedin.com/uas/oauth/requestToken',
14             oauth_authorize_page => 'https://api.linkedin.com/uas/oauth/authenticate',
15             oauth_token_url => 'https://api.linkedin.com/uas/oauth/accessToken',
16              
17             site_client_creation_desc => "LinkedIn DeveloperNetwork",
18             site_client_creation_page => 'https://www.linkedin.com/secure/developer',
19             site_client_creation_help => <<"END",
20             Choose Add New Application and fill the form.
21             Use <Consumer Key> as client key and <Consumer Secret> as client secret.
22             (note: DO NOT use <OAuth 1.0 User Token/Secret>, it does not work).
23             END
24             );
25              
26             }
27              
28             1;
29              
30             __END__
31              
32             =pod
33              
34             =encoding UTF-8
35              
36             =head1 NAME
37              
38             OAuthomatic::ServerDef::LinkedIn - OAuth parameters for LinkedIn
39              
40             =head1 VERSION
41              
42             version 0.01
43              
44             =head1 DESCRIPTION
45              
46             Definition of L<OAuthomatic::Server> for L<http://linkedin.com>. Allows
47             one to specify C<server =E<gt> 'LinkedIn'> 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