linkedin-oauth2 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +9 -9
  2. data/.gitignore +24 -39
  3. data/.travis.yml +4 -4
  4. data/.yardopts +2 -0
  5. data/CHANGELOG.md +10 -0
  6. data/CONTRIBUTING.md +1 -0
  7. data/Gemfile +6 -5
  8. data/LICENSE +19 -17
  9. data/README.md +399 -0
  10. data/Rakefile +15 -22
  11. data/lib/linked_in/access_token.rb +24 -0
  12. data/lib/linked_in/api.rb +96 -3
  13. data/lib/linked_in/api_resource.rb +165 -0
  14. data/lib/linked_in/communications.rb +40 -0
  15. data/lib/linked_in/companies.rb +146 -0
  16. data/lib/linked_in/configuration.rb +41 -0
  17. data/lib/linked_in/connection.rb +31 -0
  18. data/lib/linked_in/errors.rb +33 -13
  19. data/lib/linked_in/groups.rb +116 -0
  20. data/lib/linked_in/jobs.rb +68 -0
  21. data/lib/linked_in/mash.rb +34 -34
  22. data/lib/linked_in/oauth2.rb +223 -0
  23. data/lib/linked_in/people.rb +141 -0
  24. data/lib/linked_in/search.rb +58 -43
  25. data/lib/linked_in/share_and_social_stream.rb +128 -0
  26. data/lib/linked_in/version.rb +1 -9
  27. data/lib/linkedin-oauth2.rb +43 -25
  28. data/linkedin-oauth2.gemspec +35 -21
  29. data/spec/linked_in/api/api_spec.rb +41 -0
  30. data/spec/linked_in/api/communications_spec.rb +13 -0
  31. data/spec/linked_in/api/companies_spec.rb +59 -0
  32. data/spec/linked_in/api/groups_spec.rb +55 -0
  33. data/spec/linked_in/api/jobs_spec.rb +33 -0
  34. data/spec/linked_in/api/people_spec.rb +181 -0
  35. data/spec/linked_in/api/search_spec.rb +71 -0
  36. data/spec/linked_in/api/share_and_social_stream_spec.rb +60 -0
  37. data/spec/linked_in/configuration_spec.rb +46 -0
  38. data/spec/linked_in/connection_spec.rb +10 -0
  39. data/spec/linked_in/module_loading_spec.rb +23 -0
  40. data/spec/linked_in/oauth/access_token_spec.rb +27 -0
  41. data/spec/linked_in/oauth/auth_code_spec.rb +86 -0
  42. data/spec/linked_in/oauth/credentials_spec.rb +96 -0
  43. data/spec/linked_in/oauth/get_access_token_spec.rb +108 -0
  44. data/spec/spec_helper.rb +15 -0
  45. data/spec/vcr_cassettes/access_token_success.yml +84 -0
  46. data/spec/vcr_cassettes/bad_code.yml +78 -0
  47. data/spec/vcr_cassettes/companies_data.yml +44 -0
  48. data/spec/vcr_cassettes/invalid_access_token.yml +60 -0
  49. data/spec/vcr_cassettes/not_found.yml +64 -0
  50. data/spec/vcr_cassettes/people_picture_urls.yml +54 -0
  51. data/spec/vcr_cassettes/people_profile_connections_fields.yml +73 -0
  52. data/spec/vcr_cassettes/people_profile_connections_other.yml +78 -0
  53. data/spec/vcr_cassettes/people_profile_connections_self.yml +78 -0
  54. data/spec/vcr_cassettes/people_profile_fields_complex.yml +70 -0
  55. data/spec/vcr_cassettes/people_profile_fields_simple.yml +57 -0
  56. data/spec/vcr_cassettes/people_profile_lang_spanish.yml +59 -0
  57. data/spec/vcr_cassettes/people_profile_multiple_fields.yml +68 -0
  58. data/spec/vcr_cassettes/people_profile_multiple_uids.yml +70 -0
  59. data/spec/vcr_cassettes/people_profile_multiple_uids_and_urls.yml +76 -0
  60. data/spec/vcr_cassettes/people_profile_multiple_urls.yml +70 -0
  61. data/spec/vcr_cassettes/people_profile_new_connections_fields.yml +69 -0
  62. data/spec/vcr_cassettes/people_profile_new_connections_other.yml +72 -0
  63. data/spec/vcr_cassettes/people_profile_new_connections_self.yml +72 -0
  64. data/spec/vcr_cassettes/people_profile_other_uid.yml +59 -0
  65. data/spec/vcr_cassettes/people_profile_other_url.yml +59 -0
  66. data/spec/vcr_cassettes/people_profile_own.yml +59 -0
  67. data/spec/vcr_cassettes/people_profile_own_secure.yml +59 -0
  68. data/spec/vcr_cassettes/unauthorized.yml +61 -0
  69. data/spec/vcr_cassettes/unavailable.yml +81 -0
  70. metadata +145 -88
  71. data/.autotest +0 -14
  72. data/.document +0 -5
  73. data/.gemtest +0 -0
  74. data/.rspec +0 -1
  75. data/.ruby-gemset +0 -1
  76. data/.ruby-version +0 -1
  77. data/README.markdown +0 -121
  78. data/changelog.markdown +0 -94
  79. data/examples/authenticate.rb +0 -16
  80. data/examples/network.rb +0 -12
  81. data/examples/profile.rb +0 -18
  82. data/examples/sinatra.rb +0 -69
  83. data/examples/status.rb +0 -6
  84. data/lib/linked_in/api/query_methods.rb +0 -123
  85. data/lib/linked_in/api/update_methods.rb +0 -76
  86. data/lib/linked_in/client.rb +0 -31
  87. data/lib/linked_in/helpers.rb +0 -6
  88. data/lib/linked_in/helpers/authorization.rb +0 -106
  89. data/lib/linked_in/helpers/request.rb +0 -93
  90. data/spec/cases/api_spec.rb +0 -192
  91. data/spec/cases/linkedin_spec.rb +0 -37
  92. data/spec/cases/mash_spec.rb +0 -85
  93. data/spec/cases/oauth_spec.rb +0 -130
  94. data/spec/cases/search_spec.rb +0 -190
  95. data/spec/helper.rb +0 -30
@@ -0,0 +1,15 @@
1
+ # This file is required by all tests
2
+ require 'linkedin-oauth2'
3
+
4
+ # Record and playback LinkedIn API calls
5
+ require 'vcr'
6
+ VCR.configure do |config|
7
+ config.cassette_library_dir = "spec/vcr_cassettes"
8
+ config.hook_into :webmock
9
+ end
10
+
11
+ require 'webmock/rspec'
12
+
13
+ # https://coveralls.io/r/emorikawa/linkedin-oauth2
14
+ require 'coveralls'
15
+ Coveralls.wear!
@@ -0,0 +1,84 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.linkedin.com/uas/oauth2/accessToken
6
+ body:
7
+ encoding: UTF-8
8
+ string: client_id=dummy_client_id&client_secret=dummy_client_secret&code=dummy_code&grant_type=authorization_code&raise_errors=true&redirect_uri=http%3A%2F%2Flvh.me
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ P3p:
26
+ - CP="CAO CUR ADM DEV PSA PSD OUR"
27
+ Vary:
28
+ - Accept-Encoding
29
+ Content-Type:
30
+ - application/json;charset=UTF-8
31
+ Content-Language:
32
+ - en-US
33
+ Content-Length:
34
+ - '220'
35
+ Date:
36
+ - Mon, 28 Jul 2014 20:13:57 GMT
37
+ X-Fs-Uuid:
38
+ - beaa9232a32b851310008330512b0000
39
+ X-Li-Uuid:
40
+ - vqqSMqMrhRMQAIMwUSsAAA==
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Li-Fabric:
46
+ - PROD-ELA4
47
+ Strict-Transport-Security:
48
+ - max-age=0
49
+ Set-Cookie:
50
+ - _lipt=deleteMe; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
51
+ - bcookie="v=2&b358b4b0-93c1-4d63-86f1-5853a8e1ee5e"; domain=.linkedin.com;
52
+ Path=/; Expires=Thu, 28-Jul-2016 07:51:30 GMT
53
+ - bscookie="v=1&20140728201358d9b6ae92-6bf9-4d90-8907-07ddaee58efaAQG3Hp2OJqsiZAYsVAeR31UBRgFQZxnY";
54
+ domain=.www.linkedin.com; Path=/; Secure; Expires=Thu, 28-Jul-2016 07:51:30
55
+ GMT; HttpOnly
56
+ - lang="v=2&lang=en-us"; Version=1; Domain=linkedin.com; Path=/
57
+ - leo_auth_token="GST:9lynnG61fePwAjy1hbynRWcOPVV-aqpFGkVuXjcu3_PBsEyPMLQQFe:1406578438:0492398efc5967ce3e70ee543925867a8f8e3c8f";
58
+ Version=1; Max-Age=1799; Expires=Mon, 28-Jul-2014 20:43:57 GMT; Path=/
59
+ - lidc="b=LB66:g=95:u=37:i=1406570222:t=1406656614:s=2363918518"; Expires=Tue,
60
+ 29 Jul 2014 17:56:54 GMT; domain=.linkedin.com; Path=/
61
+ - s_leo_auth_token="delete me"; Version=1; Max-Age=0; Expires=Thu, 01-Jan-1970
62
+ 00:00:10 GMT; Path=/
63
+ - sl="delete me"; Version=1; Domain=.www.linkedin.com; Max-Age=0; Expires=Thu,
64
+ 01-Jan-1970 00:00:10 GMT; Path=/
65
+ - sl="delete me"; Version=1; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT;
66
+ Path=/
67
+ - visit="v=1&G"; Version=1; Max-Age=63072000; Expires=Wed, 27-Jul-2016 20:13:58
68
+ GMT; Path=/
69
+ Pragma:
70
+ - no-cache
71
+ Expires:
72
+ - Thu, 01 Jan 1970 00:00:00 GMT
73
+ Cache-Control:
74
+ - no-cache, no-store
75
+ Connection:
76
+ - keep-alive
77
+ X-Li-Pop:
78
+ - prod-lva1
79
+ body:
80
+ encoding: UTF-8
81
+ string: '{"expires_in":5183999,"access_token":"sample_access_token"}'
82
+ http_version:
83
+ recorded_at: Mon, 28 Jul 2014 20:13:58 GMT
84
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,78 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.linkedin.com/uas/oauth2/accessToken
6
+ body:
7
+ encoding: UTF-8
8
+ string: client_id=dummy_client_id&client_secret=dummy_client_secret&code=dummy_code&grant_type=authorization_code&raise_errors=true&redirect_uri=http%3A%2F%2Flvh.me
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 400
21
+ message: Bad Request
22
+ headers:
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ P3p:
26
+ - CP="CAO CUR ADM DEV PSA PSD OUR"
27
+ Vary:
28
+ - Accept-Encoding
29
+ Content-Type:
30
+ - application/json;charset=UTF-8
31
+ Content-Language:
32
+ - en-US
33
+ Content-Length:
34
+ - '123'
35
+ Date:
36
+ - Mon, 28 Jul 2014 20:09:19 GMT
37
+ X-Fs-Uuid:
38
+ - d145694c622b851310e02438502b0000
39
+ X-Li-Uuid:
40
+ - 0UVpTGIrhRMQ4CQ4UCsAAA==
41
+ X-Li-Fabric:
42
+ - prod-lva1
43
+ Strict-Transport-Security:
44
+ - max-age=0
45
+ Set-Cookie:
46
+ - _lipt=deleteMe; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
47
+ - bcookie="v=2&3a6e79bd-90b4-4cef-8b9f-32bd121894e8"; domain=.linkedin.com;
48
+ Path=/; Expires=Thu, 28-Jul-2016 07:46:51 GMT
49
+ - bscookie="v=1&2014072820091925cfb8c0-d9ff-479c-8970-8aa4dcf8298cAQFUX3xd9U2L1-Mv54CMWscU36a3X_pG";
50
+ domain=.www.linkedin.com; Path=/; Secure; Expires=Thu, 28-Jul-2016 07:46:51
51
+ GMT; HttpOnly
52
+ - lang="v=2&lang=en-us"; Version=1; Domain=linkedin.com; Path=/
53
+ - leo_auth_token="GST:92YPQhDW9NmnXowe1WvhwcDPPEM5fqps9pHprtwDFgru1xyza0O_Dh:1406578159:7dd7736ddd78a49fb9881d310bbd5056b59c5ba2";
54
+ Version=1; Max-Age=1799; Expires=Mon, 28-Jul-2014 20:39:18 GMT; Path=/
55
+ - s_leo_auth_token="delete me"; Version=1; Max-Age=0; Expires=Thu, 01-Jan-1970
56
+ 00:00:10 GMT; Path=/
57
+ - sl="delete me"; Version=1; Domain=.www.linkedin.com; Max-Age=0; Expires=Thu,
58
+ 01-Jan-1970 00:00:10 GMT; Path=/
59
+ - sl="delete me"; Version=1; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT;
60
+ Path=/
61
+ - visit="v=1&G"; Version=1; Max-Age=63072000; Expires=Wed, 27-Jul-2016 20:09:19
62
+ GMT; Path=/
63
+ Pragma:
64
+ - no-cache
65
+ Expires:
66
+ - Thu, 01 Jan 1970 00:00:00 GMT
67
+ Cache-Control:
68
+ - no-cache, no-store
69
+ Connection:
70
+ - keep-alive
71
+ X-Li-Pop:
72
+ - prod-lva1
73
+ body:
74
+ encoding: UTF-8
75
+ string: '{"error":"invalid_request","error_description":"missing required parameters, includes an invalid parameter value, parameter more than once. : code"}'
76
+ http_version:
77
+ recorded_at: Mon, 28 Jul 2014 20:09:19 GMT
78
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/companies/1586:(id,name,industry,locations:(address:(city,state,country-code),is-headquarters),employee-count-range)?oauth2_access_token=dummy_access_token
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ User-Agent:
13
+ - OAuth gem v0.4.5
14
+ Authorization:
15
+ - OAuth oauth_consumer_key="consumer_key", oauth_nonce="nonc", oauth_signature="signature",
16
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1319129844", oauth_token="token",
17
+ oauth_version="1.0"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ Vary:
26
+ - ! '*'
27
+ X-Li-Format:
28
+ - json
29
+ Content-Type:
30
+ - application/json;charset=UTF-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Date:
34
+ - Thu, 20 Oct 2011 16:57:24 GMT
35
+ body:
36
+ encoding: UTF-8
37
+ string: ! "{\n \"employeeCountRange\": {\n \"code\": \"I\",\n \"name\":
38
+ \"10001+\"\n },\n \"id\": 1586,\n \"industry\": \"Internet\",\n \"locations\":{\n
39
+ \"_total\": 1,\n \"values\": [{\n \"address\": {\n \"city\":
40
+ \"Seattle\",\n \"countryCode\": \"us\",\n \"state\": \"WA\"\n },\n
41
+ \"isHeadquarters\": true\n }]\n },\n \"name\": \"Amazon\"\n}"
42
+ http_version: '1.1'
43
+ recorded_at: Wed, 10 Apr 2013 22:06:51 GMT
44
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people::(url=self,url=http:%2F%2Fwww.linkedin.com%2Fin%2Fevanmorikawa)?oauth2_access_token=dummy_access_token&secure-urls=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ User-Agent:
13
+ - Faraday v0.9.0
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 401
21
+ message: Unauthorized
22
+ headers:
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ X-Li-Request-Id:
26
+ - ODTW5Z6VNV
27
+ X-Li-Uuid:
28
+ - USxBal+DhRMQpnnYsSoAAA==
29
+ Date:
30
+ - Tue, 29 Jul 2014 23:01:44 GMT
31
+ Vary:
32
+ - "*"
33
+ X-Li-Format:
34
+ - json
35
+ Content-Type:
36
+ - application/json;charset=UTF-8
37
+ X-Li-Fabric:
38
+ - PROD-ELA4
39
+ Transfer-Encoding:
40
+ - chunked
41
+ Connection:
42
+ - keep-alive
43
+ X-Li-Pop:
44
+ - PROD-ELA4
45
+ Set-Cookie:
46
+ - lidc="b=LB98:g=95:u=1:i=1406674904:t=1406761304:s=2857038231"; Expires=Wed,
47
+ 30 Jul 2014 23:01:44 GMT; domain=.linkedin.com; Path=/
48
+ body:
49
+ encoding: UTF-8
50
+ string: |-
51
+ {
52
+ "errorCode": 0,
53
+ "message": "Invalid access token.",
54
+ "requestId": "ODTW5Z6VNV",
55
+ "status": 401,
56
+ "timestamp": 1406674904463
57
+ }
58
+ http_version:
59
+ recorded_at: Tue, 29 Jul 2014 23:01:44 GMT
60
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/people/~/connections:(educations,positions)
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ Server:
22
+ - nginx
23
+ Date:
24
+ - Tue, 29 Jul 2014 16:53:48 GMT
25
+ Content-Type:
26
+ - text/html
27
+ X-Li-Fabric:
28
+ - PROD-ELA4
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ X-Li-Pop:
34
+ - PROD-ELA4
35
+ X-Li-Uuid:
36
+ - WodXbEtvhRMQWoHErSoAAA==
37
+ body:
38
+ encoding: UTF-8
39
+ string: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n
40
+ \ \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n<head>\n <title>404:
41
+ Page Not Found</title>\n <meta http-equiv=\"content-type\" content=\"text/html;
42
+ charset=UTF-8\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/css/style.css\">\n</head>\n\n<body
43
+ class=\"errorpg\">\n\n<div id=\"header\">\n <a href=\"/home\"><img src=\"/img/logos/logo.gif\"
44
+ width=\"129\" height=\"36\" alt=\"Linkedin\"></a>\n</div>\n\n<div id=\"main\"
45
+ class=\"error404\">\n <h1>Page Not Found</h1>\n <p>The page you requested
46
+ is no longer available, or cannot be found.</p>\n <p class=\"bottom\">Please
47
+ double-check the URL (address) you used, or <a href=\"mailto:customer_service@linkedin.com\">contact
48
+ us</a> if you feel you have reached this page in error.</p>\n <p class=\"top
49
+ helper\"><strong>Click the &#8220;Back&#8221; button on your browser or <a
50
+ href=\"/home\">go to the home page</a>.</strong></p>\n \n <br>\n \n <p><strong>Are
51
+ you looking for any of these LinkedIn features?</strong></p>\n <ul>\n <li><a
52
+ href=\"/search\">Find People</a></li>\n <li><a href=\"/jobs\">Find Jobs</a></li>\n
53
+ \ <li><a href=\"/services\">Find Services</a></li>\n <li><a href=\"/reconnect?displayCategories=\">Reconnect
54
+ with Colleagues</a></li>\n </ul>\n \n <ul>\n <li><a href=\"/static?key=outlook_toolbar_download\">Outlook
55
+ Toolbar</a></li>\n <li><a href=\"/static?key=firefox_companion_download\">Firefox
56
+ Companion</a></li>\n <li><a href=\"/static?key=ie_toolbar_download\">Internet
57
+ Explorer Toolbar</a></li>\n <li><a href=\"/static?key=groups_info\">LinkedIn
58
+ for Groups</a></li>\n </ul>\n\n <ul>\n <li><a href=\"https://www.linkedin.com/secure/settings\">My
59
+ Account</a></li>\n <li><a href=\"/profile\">My Profile</a></li>\n <li><a
60
+ href=\"/connections\">My Connections</a></li>\n <li><a href=\"/inviteMany\">Add
61
+ Connections</a></li>\n </ul>\n <div class=\"spacer\">&nbsp;</div>\n</div>\n\n</body>\n</html>"
62
+ http_version:
63
+ recorded_at: Tue, 29 Jul 2014 16:53:48 GMT
64
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people/~/picture-urls::(original)?oauth2_access_token=dummy_access_token&secure-urls=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ User-Agent:
13
+ - Faraday v0.9.0
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - ! '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: !binary |-
22
+ T0s=
23
+ headers:
24
+ Server:
25
+ - Apache-Coyote/1.1
26
+ X-Li-Request-Id:
27
+ - RO7WMW5H97
28
+ X-Li-Uuid:
29
+ - 1pXw+JTY4cNdoULsHPpsNA==
30
+ Vary:
31
+ - "*"
32
+ X-Li-Format:
33
+ - json
34
+ Content-Type:
35
+ - application/json;charset=UTF-8
36
+ Date:
37
+ - Tue, 29 Jul 2014 22:42:17 GMT
38
+ X-Li-Fabric:
39
+ - PROD-ELA4
40
+ Transfer-Encoding:
41
+ - chunked
42
+ Connection:
43
+ - keep-alive
44
+ X-Li-Pop:
45
+ - PROD-ELA4
46
+ Set-Cookie:
47
+ - lidc="b=LB66:g=95:u=37:i=1406657453:t=1406743853:s=2424976016"; Expires=Wed,
48
+ 30 Jul 2014 18:10:53 GMT; domain=.linkedin.com; Path=/
49
+ body:
50
+ encoding: UTF-8
51
+ string: ! "{\n \"_total\": 1,\n \"values\": [\"http://m.c.lnkd.licdn.com/mpr/mprx/0_0vA3TQdAZUOuPrksUFlfTFklpImuclesUc7ubbn0-xffrKVqJ5KDLDexOZ1\"]\n}"
52
+ http_version:
53
+ recorded_at: Thu, 31 Jul 2014 00:00:08 GMT
54
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people/~/connections:(id,industry)?oauth2_access_token=dummy_access_token&secure-urls=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ User-Agent:
13
+ - Faraday v0.9.0
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ X-Li-Request-Id:
26
+ - NVI9EHDG7Z
27
+ X-Li-Uuid:
28
+ - EfjOgnxirIFa4D7pwDTesA==
29
+ Vary:
30
+ - "*"
31
+ X-Li-Format:
32
+ - json
33
+ Content-Type:
34
+ - application/json;charset=UTF-8
35
+ Date:
36
+ - Tue, 29 Jul 2014 22:42:16 GMT
37
+ X-Li-Fabric:
38
+ - PROD-ELA4
39
+ Transfer-Encoding:
40
+ - chunked
41
+ Connection:
42
+ - keep-alive
43
+ X-Li-Pop:
44
+ - PROD-ELA4
45
+ Set-Cookie:
46
+ - lidc="b=LB66:g=95:u=37:i=1406657453:t=1406743853:s=2424976016"; Expires=Wed,
47
+ 30 Jul 2014 18:10:53 GMT; domain=.linkedin.com; Path=/
48
+ body:
49
+ encoding: UTF-8
50
+ string: |-
51
+ {
52
+ "_count": 4,
53
+ "_start": 0,
54
+ "_total": 5,
55
+ "values": [
56
+ {
57
+ "id": "9mobAauE25",
58
+ "industry": "Internet"
59
+ },
60
+ {
61
+ "id": "4m7adEWPLK",
62
+ "industry": "Marketing and Advertising"
63
+ },
64
+ {
65
+ "id": "n-PxxuzcHK",
66
+ "industry": "Computer Software"
67
+ },
68
+ {"id": "private"}
69
+ ]
70
+ }
71
+ http_version:
72
+ recorded_at: Tue, 29 Jul 2014 22:42:16 GMT
73
+ recorded_with: VCR 2.9.2