linkedin 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -1
  3. data/.yardopts +7 -0
  4. data/{changelog.markdown → CHANGELOG.md} +5 -1
  5. data/EXAMPLES.md +199 -0
  6. data/Gemfile +4 -0
  7. data/README.md +43 -0
  8. data/Rakefile +2 -7
  9. data/lib/linked_in/api.rb +34 -2
  10. data/lib/linked_in/api/communications.rb +44 -0
  11. data/lib/linked_in/api/companies.rb +128 -0
  12. data/lib/linked_in/api/groups.rb +115 -0
  13. data/lib/linked_in/api/jobs.rb +64 -0
  14. data/lib/linked_in/api/people.rb +72 -0
  15. data/lib/linked_in/api/query_helpers.rb +86 -0
  16. data/lib/linked_in/api/share_and_social_stream.rb +133 -0
  17. data/lib/linked_in/client.rb +7 -2
  18. data/lib/linked_in/errors.rb +12 -2
  19. data/lib/linked_in/mash.rb +31 -4
  20. data/lib/linked_in/search.rb +16 -1
  21. data/lib/linked_in/version.rb +1 -1
  22. data/lib/linkedin.rb +4 -1
  23. data/linkedin.gemspec +5 -3
  24. data/spec/cases/api_spec.rb +15 -5
  25. data/spec/cases/mash_spec.rb +30 -2
  26. data/spec/cases/oauth_spec.rb +5 -6
  27. data/spec/cases/search_spec.rb +53 -23
  28. data/spec/fixtures/cassette_library/LinkedIn_Api/Company_API.yml +3 -3
  29. data/spec/fixtures/cassette_library/LinkedIn_Api/Company_API/should_load_correct_company_data.yml +81 -0
  30. data/spec/fixtures/cassette_library/LinkedIn_Client/{_authorize_from_request.yml → _authorize_from_request/should_return_a_valid_access_token.yml} +0 -0
  31. data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token/{with_a_callback_url.yml → with_a_callback_url/should_return_a_valid_access_token.yml} +0 -0
  32. data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token/{with_default_options.yml → with_default_options/should_return_a_valid_request_token.yml} +0 -0
  33. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/{by_company_name_option.yml → by_company_name_option/should_perform_a_search.yml} +8 -9
  34. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_email_address/should_perform_a_people_search.yml +57 -0
  35. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/{by_first_name_and_last_name_options.yml → by_first_name_and_last_name_options/should_perform_a_search.yml} +15 -15
  36. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options_with_fields/should_perform_a_search.yml +114 -0
  37. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/{by_keywords_string_parameter.yml → by_keywords_string_parameter/should_perform_a_search.yml} +8 -9
  38. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_multiple_email_address/should_perform_a_multi-email_search.yml +59 -0
  39. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/{by_single_keywords_option.yml → by_single_keywords_option/should_perform_a_search.yml} +8 -9
  40. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/{by_single_keywords_option_with_pagination.yml → by_single_keywords_option_with_pagination/should_perform_a_search.yml} +1 -3
  41. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/email_search_returns_unauthorized/should_raise_an_unauthorized_error.yml +59 -0
  42. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_options_with_fields/should_perform_a_search.yml +43 -0
  43. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/{by_keywords_string_parameter.yml → by_keywords_string_parameter/should_perform_a_company_search.yml} +19 -19
  44. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/{by_single_keywords_option.yml → by_single_keywords_option/should_perform_a_company_search.yml} +19 -19
  45. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/{by_single_keywords_option_with_facets_to_return.yml → by_single_keywords_option_with_facets_to_return/should_return_a_facet.yml} +14 -14
  46. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/{by_single_keywords_option_with_pagination.yml → by_single_keywords_option_with_pagination/should_perform_a_search.yml} +15 -15
  47. data/spec/helper.rb +9 -5
  48. metadata +76 -61
  49. data/.document +0 -5
  50. data/README.markdown +0 -84
  51. data/examples/authenticate.rb +0 -26
  52. data/examples/communication.rb +0 -7
  53. data/examples/network.rb +0 -12
  54. data/examples/profile.rb +0 -18
  55. data/examples/sinatra.rb +0 -77
  56. data/examples/status.rb +0 -6
  57. data/lib/linked_in/api/query_methods.rb +0 -176
  58. data/lib/linked_in/api/update_methods.rb +0 -85
  59. data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token.yml +0 -37
  60. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options_with_fields.yml +0 -112
  61. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_options_with_fields.yml +0 -232
@@ -72,10 +72,10 @@ http_interactions:
72
72
  body:
73
73
  encoding: UTF-8
74
74
  string: ! "{\n \"employeeCountRange\": {\n \"code\": \"I\",\n \"name\":
75
- \"10001+\"\n },\n \"id\": 1586,\n \"industry\": \"Internet\",\n \"locations\":
76
- {\n \"_total\": 1,\n \"values\": [{\n \"address\": {\n \"city\":
75
+ \"10001+\"\n },\n \"id\": 1586,\n \"industry\": \"Internet\",\n \"locations\":{\n
76
+ \"_total\": 1,\n \"values\": [{\n \"address\": {\n \"city\":
77
77
  \"Seattle\",\n \"countryCode\": \"us\",\n \"state\": \"WA\"\n },\n
78
- \ \"isHeadquarters\": true\n }]\n },\n \"name\": \"Amazon\"\n}"
78
+ \"isHeadquarters\": true\n }]\n },\n \"name\": \"Amazon\"\n}"
79
79
  http_version: '1.1'
80
80
  recorded_at: Wed, 10 Apr 2013 22:06:51 GMT
81
81
  recorded_with: VCR 2.5.0
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/companies/id=1586
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="nonce", oauth_signature="signature",
16
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1319129843", 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 \"id\": 1586,\n \"name\": \"Amazon\"\n}"
38
+ http_version: '1.1'
39
+ recorded_at: Wed, 10 Apr 2013 22:06:51 GMT
40
+ - request:
41
+ method: get
42
+ uri: https://api.linkedin.com/v1/companies/id=1586:(id,name,industry,locations:(address:(city,state,country-code),is-headquarters),employee-count-range)
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ X-Li-Format:
48
+ - json
49
+ User-Agent:
50
+ - OAuth gem v0.4.5
51
+ Authorization:
52
+ - OAuth oauth_consumer_key="consumer_key", oauth_nonce="nonc", oauth_signature="signature",
53
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1319129844", oauth_token="token",
54
+ oauth_version="1.0"
55
+ response:
56
+ status:
57
+ code: 200
58
+ message: OK
59
+ headers:
60
+ Server:
61
+ - Apache-Coyote/1.1
62
+ Vary:
63
+ - ! '*'
64
+ X-Li-Format:
65
+ - json
66
+ Content-Type:
67
+ - application/json;charset=UTF-8
68
+ Transfer-Encoding:
69
+ - chunked
70
+ Date:
71
+ - Thu, 20 Oct 2011 16:57:24 GMT
72
+ body:
73
+ encoding: UTF-8
74
+ string: ! "{\n \"employeeCountRange\": {\n \"code\": \"I\",\n \"name\":
75
+ \"10001+\"\n },\n \"id\": 1586,\n \"industry\": \"Internet\",\n \"locations\":{\n
76
+ \"_total\": 1,\n \"values\": [{\n \"address\": {\n \"city\":
77
+ \"Seattle\",\n \"countryCode\": \"us\",\n \"state\": \"WA\"\n },\n
78
+ \"isHeadquarters\": true\n }]\n },\n \"name\": \"Amazon\"\n}"
79
+ http_version: '1.1'
80
+ recorded_at: Wed, 10 Apr 2013 22:06:51 GMT
81
+ recorded_with: VCR 2.5.0
@@ -79,15 +79,14 @@ http_interactions:
79
79
  encoding: UTF-8
80
80
  string: ! "{\n \"numResults\": 6,\n \"people\": {\n \"_total\": 6,\n \"values\":
81
81
  [\n {\n \"firstName\": \"Ryan\",\n \"id\": \"KHkgwBMaa-\",\n
82
- \ \"lastName\": \"Sue\"\n },\n {\n \"firstName\": \"Ben\",\n
83
- \ \"id\": \"lljISRB-WQ\",\n \"lastName\": \"Mejia\"\n },\n
84
- \ {\n \"firstName\": \"James\",\n \"id\": \"zLwxyfa2cv\",\n
85
- \ \"lastName\": \"Stevenson\"\n },\n {\n \"firstName\":
86
- \"Charles\",\n \"id\": \"r5Kzi9Um-e\",\n \"lastName\": \"Kafoglis\"\n
87
- \ },\n {\n \"firstName\": \"Sauraj\",\n \"id\": \"RLJu6NhdI2\",\n
88
- \ \"lastName\": \"Goswami\"\n },\n {\n \"firstName\":
89
- \"Jonathan\",\n \"id\": \"NgAxaSCyZ3\",\n \"lastName\": \"Hedstrom\"\n
90
- \ }\n ]\n }\n}"
82
+ \"lastName\": \"Sue\"\n },\n {\n \"firstName\": \"Ben\",\n
83
+ \"id\": \"lljISRB-WQ\",\n \"lastName\": \"Mejia\"\n },\n{\n
84
+ \"firstName\": \"James\",\n \"id\": \"zLwxyfa2cv\",\n
85
+ \"lastName\": \"Stevenson\"\n },\n {\n \"firstName\":
86
+ \"Charles\",\n \"id\": \"r5Kzi9Um-e\",\n \"lastName\": \"Kafoglis\"\n},\n{\n
87
+ \"firstName\": \"Sauraj\",\n \"id\": \"RLJu6NhdI2\",\n
88
+ \"lastName\": \"Goswami\"\n },\n {\n \"firstName\":
89
+ \"Jonathan\",\n \"id\": \"NgAxaSCyZ3\",\n \"lastName\": \"Hedstrom\"\n }\n ]\n }\n}"
91
90
  http_version: '1.1'
92
91
  recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
93
92
  recorded_with: VCR 2.5.0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people::(email=yy@zz.com):(id)
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ User-Agent:
17
+ - OAuth gem v0.4.7
18
+ Authorization:
19
+ - OAuth oauth_consumer_key="key", oauth_nonce="KkLqrO8OnlnRKJFUnwnHvyDpmT5lzyVuPPU38MHKXE",
20
+ oauth_signature="kR6yrOhUD3SUay3k2bP2YdxwB6U%3D", oauth_signature_method="HMAC-SHA1",
21
+ oauth_timestamp="1389649903", oauth_token="key", oauth_version="1.0"
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: ok
26
+ headers:
27
+ Server:
28
+ - Apache-Coyote/1.1
29
+ X-Li-Request-Id:
30
+ - 4506AHDFV4
31
+ Date:
32
+ - Mon, 13 Jan 2014 21:51:43 GMT
33
+ Vary:
34
+ - '*'
35
+ X-Li-Format:
36
+ - json
37
+ Content-Type:
38
+ - application/json;charset=UTF-8
39
+ X-Li-Fabric:
40
+ - PROD-ELA4
41
+ Transfer-Encoding:
42
+ - chunked
43
+ Connection:
44
+ - keep-alive
45
+ X-Li-Pop:
46
+ - PROD-ELA4
47
+ X-Li-Uuid:
48
+ - SCj2pjkHSRPw0yJYdCsAAA==
49
+ Set-Cookie:
50
+ - lidc="b=LB34:g=45:u=1:i=1389649904:t=1389650504:s=2677822921"; Expires=Mon,
51
+ 13 Jan 2014 22:01:44 GMT; domain=.linkedin.com; Path=/
52
+ body:
53
+ encoding: UTF-8
54
+ string: ! "{\"_total\": 1,\"values\": [{
55
+ \"_key\": \"email=yy@zz.com\",\"id\": \"96GVfLeWjU\"}]}"
56
+ http_version:
57
+ recorded_at: Mon, 13 Jan 2014 21:51:44 GMT
@@ -78,23 +78,23 @@ http_interactions:
78
78
  body:
79
79
  encoding: UTF-8
80
80
  string: ! "{\n \"numResults\": 308,\n \"people\": {\n \"_count\": 10,\n
81
- \ \"_start\": 0,\n \"_total\": 110,\n \"values\": [\n {\n \"firstName\":
82
- \"Charles\",\n \"id\": \"2zk34r8TvA\",\n \"lastName\": \"Garcia,
83
- CFA\"\n },\n {\n \"firstName\": \"Charles R.\",\n \"id\":
81
+ \"_start\": 0,\n \"_total\": 110,\n \"values\": [\n {\n \"firstName\":
82
+ \"Charles\",\n \"id\": \"2zk34r8TvA\",\n \"lastName\": \"Garcia, CFA\"\n},\n{\n
83
+ \"firstName\": \"Charles R.\",\n \"id\":
84
84
  \"NjwO1vU6P6\",\n \"lastName\": \"Garcia Jr.\"\n },\n {\n
85
- \ \"firstName\": \"Charles\",\n \"id\": \"j8ZczJo44W\",\n \"lastName\":
85
+ \"firstName\": \"Charles\",\n \"id\": \"j8ZczJo44W\",\n \"lastName\":
86
86
  \"Garcia-Tobin\"\n },\n {\n \"firstName\": \"Charles\",\n
87
- \ \"id\": \"jYfrk5GM29\",\n \"lastName\": \"Garcia\"\n },\n
88
- \ {\n \"firstName\": \"Charles\",\n \"id\": \"C-2ASm3SQ1\",\n
89
- \ \"lastName\": \"Garcia\"\n },\n {\n \"firstName\":
90
- \"Charles\",\n \"id\": \"LG__MFCUTJ\",\n \"lastName\": \"Garcia\"\n
91
- \ },\n {\n \"firstName\": \"Charles\",\n \"id\": \"wjopxKqYYM\",\n
92
- \ \"lastName\": \"Garcia\"\n },\n {\n \"firstName\":
93
- \"Charles\",\n \"id\": \"AtFQt5Lf1V\",\n \"lastName\": \"Garcia\"\n
94
- \ },\n {\n \"firstName\": \"Charles\",\n \"id\": \"MUXIZwfehE\",\n
95
- \ \"lastName\": \"Garcia\"\n },\n {\n \"firstName\":
96
- \"Charles\",\n \"id\": \"koTmAyWE8J\",\n \"lastName\": \"Schwalbe
97
- Garcia-Lago\"\n }\n ]\n }\n}"
87
+ \"id\": \"jYfrk5GM29\",\n \"lastName\": \"Garcia\"\n },\n{\n
88
+ \"firstName\": \"Charles\",\n \"id\": \"C-2ASm3SQ1\",\n
89
+ \"lastName\": \"Garcia\"\n },\n {\n \"firstName\":
90
+ \"Charles\",\n \"id\": \"LG__MFCUTJ\",\n \"lastName\": \"Garcia\"\n},\n {\n
91
+ \"firstName\": \"Charles\",\n \"id\": \"wjopxKqYYM\",\n
92
+ \"lastName\": \"Garcia\"\n },\n {\n \"firstName\":
93
+ \"Charles\",\n \"id\": \"AtFQt5Lf1V\",\n \"lastName\": \"Garcia\"\n},\n {\n
94
+ \"firstName\": \"Charles\",\n \"id\": \"MUXIZwfehE\",\n
95
+ \"lastName\": \"Garcia\"\n },\n {\n \"firstName\":
96
+ \"Charles\",\n \"id\": \"koTmAyWE8J\",\n \"lastName\":
97
+ \"Schwalbe Garcia-Lago\"\n }\n ]\n }\n}"
98
98
  http_version: '1.1'
99
99
  recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
100
100
  recorded_with: VCR 2.5.0
@@ -0,0 +1,114 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,public-profile-url,picture-url),num-results)?first-name=Giliardi&last-name=Pires
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - OAuth gem v0.4.7
12
+ Authorization:
13
+ - OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="XxYZ3yqoTFr792YTu6TmJPFCrrkZejwXkORldtyZGI",
14
+ oauth_signature="cBkWRwhVxBDozgn5sCXBwGIoer4%3D", oauth_signature_method="HMAC-SHA1",
15
+ oauth_timestamp="1365631657", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089",
16
+ oauth_version="1.0"
17
+ X-Li-Format:
18
+ - json
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Server:
25
+ - Apache-Coyote/1.1
26
+ Transfer-Encoding:
27
+ - chunked
28
+ Vary:
29
+ - ! '*'
30
+ Content-Type:
31
+ - application/json;charset=UTF-8
32
+ X-Li-Request-Id:
33
+ - G0J3Z1XF1E
34
+ Date:
35
+ - Wed, 10 Apr 2013 22:07:36 GMT
36
+ X-Li-Format:
37
+ - json
38
+ body:
39
+ encoding: UTF-8
40
+ string: ! "{\n \"numResults\": 0,\n \"people\": {\"_total\": 0}\n}"
41
+ http_version: '1.1'
42
+ recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
43
+ - request:
44
+ method: get
45
+ uri: https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,public-profile-url,picture-url),num-results)?first-name=Charles&last-name=Garcia
46
+ body:
47
+ encoding: US-ASCII
48
+ string: ''
49
+ headers:
50
+ User-Agent:
51
+ - OAuth gem v0.4.7
52
+ Authorization:
53
+ - OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="apcqck1ATxZYGou1ynnfBm6OgZFBz4TXKeuPo160NU",
54
+ oauth_signature="zB0MtadBiOOL2rAX%2FdHn71fZyOA%3D", oauth_signature_method="HMAC-SHA1",
55
+ oauth_timestamp="1365631934", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089",
56
+ oauth_version="1.0"
57
+ X-Li-Format:
58
+ - json
59
+ response:
60
+ status:
61
+ code: 200
62
+ message: OK
63
+ headers:
64
+ Server:
65
+ - Apache-Coyote/1.1
66
+ Transfer-Encoding:
67
+ - chunked
68
+ Vary:
69
+ - ! '*'
70
+ Content-Type:
71
+ - application/json;charset=UTF-8
72
+ X-Li-Request-Id:
73
+ - 7A7TZHN5V9
74
+ Date:
75
+ - Wed, 10 Apr 2013 22:12:14 GMT
76
+ X-Li-Format:
77
+ - json
78
+ body:
79
+ encoding: UTF-8
80
+ string: ! "{\n \"numResults\": 308,\n \"people\": {\n \"_count\": 10,\n
81
+ \"_start\": 0,\n \"_total\": 110,\n \"values\": [\n {\n \"firstName\":
82
+ \"Charles\",\n \"id\": \"2zk34r8TvA\",\n \"lastName\": \"Garcia, CFA\",\n
83
+ \"publicProfileUrl\": \"http://www.linkedin.com/in/charlesgarcia\"\n},\n {\n
84
+ \"firstName\": \"Charles R.\",\n \"id\":
85
+ \"NjwO1vU6P6\",\n \"lastName\": \"Garcia Jr.\",\n \"pictureUrl\":
86
+ \"http://m3.licdn.com/mpr/mprx/0_eyd5KukV6r4QDft-oYwsKfzsXqyWSdi-oUjVKaLVRAeMtSqtXsJWOmlqospnaaGOWxIUxWUUfdKb\",\n
87
+ \"publicProfileUrl\": \"http://www.linkedin.com/in/knightwealthmanagement\"\n},\n {\n
88
+ \"firstName\": \"Charles\",\n \"id\": \"j8ZczJo44W\",\n
89
+ \"lastName\": \"Garcia-Tobin\",\n \"publicProfileUrl\":
90
+ \"http://www.linkedin.com/pub/charles-garcia-tobin/1/407/37\"\n },\n {\n
91
+ \"firstName\": \"Charles\",\n \"id\": \"jYfrk5GM29\",\n
92
+ \"lastName\": \"Garcia\",\n \"pictureUrl\": \"http://m3.licdn.com/mpr/mprx/0_oCf8Sdu0zOpQN_tEeLaPSwVjvZHIq5CEH6R0SEw2EOpRI3voQk0uio0GUveqBC_QITDYCDz2KP6m\",\n
93
+ \"publicProfileUrl\": \"http://www.linkedin.com/in/charleshgarcia\"\n },\n {\n
94
+ \"firstName\": \"Charles\",\n \"id\": \"C-2ASm3SQ1\",\n
95
+ \"lastName\": \"Garcia\",\n \"pictureUrl\": \"http://m3.licdn.com/mpr/mprx/0_eyd5KuNsktdHTE1-6RasKacFXqyWSdi-oUjVKaLVRAeMtSqtXsJWOmlqospnaaGOWxIUxWRzo_ib\",\n
96
+ \"publicProfileUrl\": \"http://www.linkedin.com/pub/charles-garcia/26/1b2/b28\"\n},\n {\n
97
+ \"firstName\": \"Charles\",\n \"id\": \"LG__MFCUTJ\",\n
98
+ \"lastName\": \"Garcia\",\n \"publicProfileUrl\":
99
+ \"http://www.linkedin.com/pub/charles-garcia/5/465/b00\"\n},\n {\n
100
+ \"firstName\": \"Charles\",\n \"id\": \"wjopxKqYYM\",\n
101
+ \"lastName\": \"Garcia\",\n \"pictureUrl\": \"http://m3.licdn.com/mpr/mprx/0_ePvupanfrtgopBCiEBzPpuFir-Zdp-tioNT1pSkPfNuJin5_Xv58tDrgO049xzPfWKBt1o9wYUsb\",\n
102
+ \"publicProfileUrl\": \"http://www.linkedin.com/pub/charles-garcia/8/152/3ab\"\n},\n {\n
103
+ \"firstName\": \"Charles\",\n \"id\": \"AtFQt5Lf1V\",\n
104
+ \"lastName\": \"Garcia\",\n \"pictureUrl\": \"http://m3.licdn.com/mpr/mprx/0_uuv-7sRI0s_EdtBWuecS7Jf9jM5owt6WaSTS7Jd9GylVN9AdhE5O3Mg41cLzHvF5S7B28YBarPYq\",\n
105
+ \"publicProfileUrl\": \"http://www.linkedin.com/in/chasgarcia\"\n},\n {\n
106
+ \"firstName\": \"Charles\",\n \"id\": \"MUXIZwfehE\",\n
107
+ \"lastName\": \"Garcia\",\n \"publicProfileUrl\":
108
+ \"http://www.linkedin.com/pub/charles-garcia/14/6a7/81\"\n},\n {\n
109
+ \"firstName\": \"Charles\",\n \"id\": \"koTmAyWE8J\",\n
110
+ \"lastName\": \"Schwalbe Garcia-Lago\",\n \"pictureUrl\": \"http://m3.licdn.com/mpr/mprx/0_q6hJ9GyYDCe0NRJ1sGCQ9TSySTY-nZZ1nFqQ9TyatkEGWp7PZhrzZ3Hh_fODzxM0zLGFJ6CC9gBb\",\n
111
+ \"publicProfileUrl\": \"http://www.linkedin.com/in/charlesschwalbe\"\n }\n ]\n }\n}"
112
+ http_version: '1.1'
113
+ recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
114
+ recorded_with: VCR 2.5.0
@@ -39,15 +39,14 @@ http_interactions:
39
39
  encoding: UTF-8
40
40
  string: ! "{\n \"numResults\": 6,\n \"people\": {\n \"_total\": 6,\n \"values\":
41
41
  [\n {\n \"firstName\": \"Shay\",\n \"id\": \"ucXjUw4M9J\",\n
42
- \ \"lastName\": \"Frendt\"\n },\n {\n \"firstName\":
43
- \"Scott\",\n \"id\": \"t6mvVsY3df\",\n \"lastName\": \"Smith\"\n
44
- \ },\n {\n \"firstName\": \"Philip\",\n \"id\": \"ZeSnXwtz6Y\",\n
45
- \ \"lastName\": \"Corliss\"\n },\n {\n \"firstName\":
46
- \"Jay\",\n \"id\": \"i24wDA2GrH\",\n \"lastName\": \"Beavers\"\n
47
- \ },\n {\n \"firstName\": \"Chris\",\n \"id\": \"SJBelisgHh\",\n
48
- \ \"lastName\": \"Wiswell\"\n },\n {\n \"firstName\":
49
- \"Satish\",\n \"id\": \"V1FPuGot-I\",\n \"lastName\": \"Talim\"\n
50
- \ }\n ]\n }\n}"
42
+ \"lastName\": \"Frendt\"\n },\n {\n \"firstName\":
43
+ \"Scott\",\n \"id\": \"t6mvVsY3df\",\n \"lastName\": \"Smith\"\n},\n {\n
44
+ \"firstName\": \"Philip\",\n \"id\": \"ZeSnXwtz6Y\",\n
45
+ \"lastName\": \"Corliss\"\n },\n {\n \"firstName\":
46
+ \"Jay\",\n \"id\": \"i24wDA2GrH\",\n \"lastName\": \"Beavers\"\n},\n {\n
47
+ \"firstName\": \"Chris\",\n \"id\": \"SJBelisgHh\",\n
48
+ \"lastName\": \"Wiswell\"\n },\n {\n \"firstName\":
49
+ \"Satish\",\n \"id\": \"V1FPuGot-I\",\n \"lastName\": \"Talim\"\n}\n ]\n }\n}"
51
50
  http_version: '1.1'
52
51
  recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
53
52
  recorded_with: VCR 2.5.0
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people::(email=yy@zz.com,email=xx@yy.com):(id)
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ User-Agent:
17
+ - OAuth gem v0.4.7
18
+ Authorization:
19
+ - OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="eq8g0jFLe2FsDxO255PW6UqoZ8lwJAqiIJCm3qEKF8",
20
+ oauth_signature="D1xMNnx7aOxDotnPt1mtEdbJPlU%3D", oauth_signature_method="HMAC-SHA1",
21
+ oauth_timestamp="1365631656", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089",
22
+ oauth_version="1.0"
23
+ response:
24
+ status:
25
+ code: 200
26
+ message: ok
27
+ headers:
28
+ Server:
29
+ - Apache-Coyote/1.1
30
+ X-Li-Request-Id:
31
+ - QG386P3UQ9
32
+ Date:
33
+ - Mon, 13 Jan 2014 21:33:51 GMT
34
+ Vary:
35
+ - '*'
36
+ X-Li-Format:
37
+ - json
38
+ Content-Type:
39
+ - application/json;charset=UTF-8
40
+ X-Li-Fabric:
41
+ - PROD-ELA4
42
+ Transfer-Encoding:
43
+ - chunked
44
+ Connection:
45
+ - keep-alive
46
+ X-Li-Pop:
47
+ - PROD-ELA4
48
+ X-Li-Uuid:
49
+ - gNIS8z8GSRNwtDkbISsAAA==
50
+ Set-Cookie:
51
+ - lidc="b=LB33:g=40:u=1:i=1389648831:t=1389649431:s=2943015068"; Expires=Mon,
52
+ 13 Jan 2014 21:43:51 GMT; domain=.linkedin.com; Path=/
53
+ body:
54
+ encoding: UTF-8
55
+ string: ! "{\"_total\": 2,\"values\": [{
56
+ \"_key\": \"email=yy@zz.com\",\"id\": \"96GVfLeWjU\"},{
57
+ \"_key\": \"email=xx@yy.com\",\"id\": \"10CGfLfLhI\"}]}"
58
+ http_version:
59
+ recorded_at: Mon, 13 Jan 2014 21:33:51 GMT
@@ -39,15 +39,14 @@ http_interactions:
39
39
  encoding: UTF-8
40
40
  string: ! "{\n \"numResults\": 6,\n \"people\": {\n \"_total\": 6,\n \"values\":
41
41
  [\n {\n \"firstName\": \"Shay\",\n \"id\": \"ucXjUw4M9J\",\n
42
- \ \"lastName\": \"Frendt\"\n },\n {\n \"firstName\":
43
- \"Scott\",\n \"id\": \"t6mvVsY3df\",\n \"lastName\": \"Smith\"\n
44
- \ },\n {\n \"firstName\": \"Philip\",\n \"id\": \"ZeSnXwtz6Y\",\n
45
- \ \"lastName\": \"Corliss\"\n },\n {\n \"firstName\":
46
- \"Jay\",\n \"id\": \"i24wDA2GrH\",\n \"lastName\": \"Beavers\"\n
47
- \ },\n {\n \"firstName\": \"Chris\",\n \"id\": \"SJBelisgHh\",\n
48
- \ \"lastName\": \"Wiswell\"\n },\n {\n \"firstName\":
49
- \"Satish\",\n \"id\": \"V1FPuGot-I\",\n \"lastName\": \"Talim\"\n
50
- \ }\n ]\n }\n}"
42
+ \"lastName\": \"Frendt\"\n },\n {\n \"firstName\":
43
+ \"Scott\",\n \"id\": \"t6mvVsY3df\",\n \"lastName\": \"Smith\"\n },\n {\n
44
+ \"firstName\": \"Philip\",\n \"id\": \"ZeSnXwtz6Y\",\n
45
+ \"lastName\": \"Corliss\"\n },\n {\n \"firstName\":
46
+ \"Jay\",\n \"id\": \"i24wDA2GrH\",\n \"lastName\": \"Beavers\"\n},\n {\n
47
+ \"firstName\": \"Chris\",\n \"id\": \"SJBelisgHh\",\n
48
+ \"lastName\": \"Wiswell\"\n },\n {\n \"firstName\":
49
+ \"Satish\",\n \"id\": \"V1FPuGot-I\",\n \"lastName\": \"Talim\"\n}\n ]\n }\n}"
51
50
  http_version: '1.1'
52
51
  recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
53
52
  recorded_with: VCR 2.5.0