linkedin-api2 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.autotest +14 -0
- data/.gemtest +0 -0
- data/.gitignore +42 -0
- data/.rspec +1 -0
- data/.travis.yml +6 -0
- data/.yardopts +7 -0
- data/CHANGELOG.md +99 -0
- data/EXAMPLES.md +202 -0
- data/Gemfile +11 -0
- data/LICENSE +22 -0
- data/README.md +43 -0
- data/Rakefile +15 -0
- data/lib/linked_in/api.rb +38 -0
- data/lib/linked_in/api/communications.rb +44 -0
- data/lib/linked_in/api/companies.rb +129 -0
- data/lib/linked_in/api/groups.rb +115 -0
- data/lib/linked_in/api/jobs.rb +64 -0
- data/lib/linked_in/api/people.rb +73 -0
- data/lib/linked_in/api/query_helpers.rb +86 -0
- data/lib/linked_in/api/share_and_social_stream.rb +137 -0
- data/lib/linked_in/client.rb +51 -0
- data/lib/linked_in/errors.rb +29 -0
- data/lib/linked_in/helpers.rb +6 -0
- data/lib/linked_in/helpers/authorization.rb +69 -0
- data/lib/linked_in/helpers/request.rb +85 -0
- data/lib/linked_in/mash.rb +95 -0
- data/lib/linked_in/search.rb +71 -0
- data/lib/linked_in/version.rb +11 -0
- data/lib/linkedin.rb +35 -0
- data/linkedin-api2.gemspec +27 -0
- data/spec/cases/api_spec.rb +308 -0
- data/spec/cases/linkedin_spec.rb +37 -0
- data/spec/cases/mash_spec.rb +113 -0
- data/spec/cases/oauth_spec.rb +178 -0
- data/spec/cases/search_spec.rb +234 -0
- data/spec/fixtures/cassette_library/LinkedIn_Api/Company_API.yml +81 -0
- data/spec/fixtures/cassette_library/LinkedIn_Api/Company_API/should_load_correct_company_data.yml +81 -0
- data/spec/fixtures/cassette_library/LinkedIn_Client/_authorize_from_request/should_return_a_valid_access_token.yml +37 -0
- data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token/with_a_callback_url/should_return_a_valid_access_token.yml +37 -0
- data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token/with_default_options/should_return_a_valid_request_token.yml +37 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_company_name_option/should_perform_a_search.yml +92 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_email_address/should_perform_a_people_search.yml +57 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options/should_perform_a_search.yml +100 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options_with_fields/should_perform_a_search.yml +114 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_keywords_string_parameter/should_perform_a_search.yml +52 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_multiple_email_address/should_perform_a_multi-email_search.yml +59 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option/should_perform_a_search.yml +52 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option_with_pagination/should_perform_a_search.yml +43 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/email_search_returns_unauthorized/should_raise_an_unauthorized_error.yml +59 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_options_with_fields/should_perform_a_search.yml +43 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_string_parameter/should_perform_a_company_search.yml +80 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option/should_perform_a_company_search.yml +80 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_facets_to_return/should_return_a_facet.yml +80 -0
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_pagination/should_perform_a_search.yml +74 -0
- data/spec/helper.rb +34 -0
- metadata +268 -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
|
data/spec/fixtures/cassette_library/LinkedIn_Api/Company_API/should_load_correct_company_data.yml
ADDED
@@ -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
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.linkedin.com/uas/oauth/accessToken
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- OAuth gem v0.4.4
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="eAI15DqRUTTd7OuQJBG3Mo0aw2Ekx5yoLX3x3NaLnbTnZbaU46OEii7uNTKijII4",
|
14
|
+
oauth_nonce="ztYyddIoKJ8flDjBJyveOSqm96CLaEM4QpOC0CSW0E", oauth_signature="NSp3ZDtycelP7wsDM7dsuDTZGys%3D",
|
15
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1297095033", oauth_token="2f5b42dd-1e0e-4f8f-a03c-1e510bde5935",
|
16
|
+
oauth_verifier="25038", oauth_version="1.0"
|
17
|
+
Content-Length:
|
18
|
+
- '0'
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 200
|
22
|
+
message: OK
|
23
|
+
headers:
|
24
|
+
Content-Type:
|
25
|
+
- text/plain
|
26
|
+
Server:
|
27
|
+
- Apache-Coyote/1.1
|
28
|
+
Date:
|
29
|
+
- Mon, 07 Feb 2011 16:10:34 GMT
|
30
|
+
Content-Length:
|
31
|
+
- '156'
|
32
|
+
body:
|
33
|
+
encoding: UTF-8
|
34
|
+
string: oauth_token=28774cd4-fbe1-4e6e-a05e-1243f6471933&oauth_token_secret=2fafe259-976e-41ad-a6f5-d26bbba42923&oauth_expires_in=0&oauth_authorization_expires_in=0
|
35
|
+
http_version: '1.1'
|
36
|
+
recorded_at: Wed, 10 Apr 2013 22:06:51 GMT
|
37
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.linkedin.com/uas/oauth/requestToken
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- OAuth gem v0.4.4
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="http%3A%2F%2Fwww.josh.com",
|
14
|
+
oauth_consumer_key="eAI15DqRUTTd7OuQJBG3Mo0aw2Ekx5yoLX3x3NaLnbTnZbaU46OEii7uNTKijII4",
|
15
|
+
oauth_nonce="OYVkd4yi5oe16NGQMbANhBB8cabeynkTX28fOEjG1rs", oauth_signature="%2BwgZ8nb2CM5oWRpJEC5U0554uGk%3D",
|
16
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1297103790", oauth_version="1.0"
|
17
|
+
Content-Length:
|
18
|
+
- '0'
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 200
|
22
|
+
message: OK
|
23
|
+
headers:
|
24
|
+
Content-Type:
|
25
|
+
- text/plain
|
26
|
+
Server:
|
27
|
+
- Apache-Coyote/1.1
|
28
|
+
Date:
|
29
|
+
- Mon, 07 Feb 2011 18:36:30 GMT
|
30
|
+
Content-Length:
|
31
|
+
- '236'
|
32
|
+
body:
|
33
|
+
encoding: UTF-8
|
34
|
+
string: oauth_token=f8af7ca2-ca1a-48f2-be6a-bd7b721e2868&oauth_token_secret=c5ec7928-7740-4813-a202-2be8800a0b32&oauth_callback_confirmed=true&xoauth_request_auth_url=https%3A%2F%2Fapi.linkedin.com%2Fuas%2Foauth%2Fauthorize&oauth_expires_in=599
|
35
|
+
http_version: '1.1'
|
36
|
+
recorded_at: Wed, 10 Apr 2013 22:06:51 GMT
|
37
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.linkedin.com/uas/oauth/requestToken
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- OAuth gem v0.4.4
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="oob",
|
14
|
+
oauth_consumer_key="eAI15DqRUTTd7OuQJBG3Mo0aw2Ekx5yoLX3x3NaLnbTnZbaU46OEii7uNTKijII4",
|
15
|
+
oauth_nonce="5INIHjRHjfLCYQX0r7cArMGiUPXoH62wEAgbrh1M", oauth_signature="K1kJU%2FQsuIKj1OUKsaUIcM1xr8Q%3D",
|
16
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1297103788", oauth_version="1.0"
|
17
|
+
Content-Length:
|
18
|
+
- '0'
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 200
|
22
|
+
message: OK
|
23
|
+
headers:
|
24
|
+
Content-Type:
|
25
|
+
- text/plain
|
26
|
+
Server:
|
27
|
+
- Apache-Coyote/1.1
|
28
|
+
Date:
|
29
|
+
- Mon, 07 Feb 2011 18:36:29 GMT
|
30
|
+
Content-Length:
|
31
|
+
- '236'
|
32
|
+
body:
|
33
|
+
encoding: UTF-8
|
34
|
+
string: oauth_token=fe9d7429-e5cc-47c2-b396-23521d86cf9c&oauth_token_secret=092e7c24-8ad8-4ca9-8f92-8c4f17664bcb&oauth_callback_confirmed=true&xoauth_request_auth_url=https%3A%2F%2Fapi.linkedin.com%2Fuas%2Foauth%2Fauthorize&oauth_expires_in=599
|
35
|
+
http_version: '1.1'
|
36
|
+
recorded_at: Wed, 10 Apr 2013 22:06:51 GMT
|
37
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,92 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.linkedin.com/v1/people-search?company-name=linkedin
|
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="TkuTVt34MgzfuheowxiWtlQzdNdJBfGwh8uNqwcDrS4",
|
14
|
+
oauth_signature="TQsnrPLgwq6hrw4G9VaPwJIKW8o%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
|
+
X-Li-Request-Id:
|
25
|
+
- 0UF1FY9HHN
|
26
|
+
Vary:
|
27
|
+
- ! '*'
|
28
|
+
Transfer-Encoding:
|
29
|
+
- chunked
|
30
|
+
Server:
|
31
|
+
- Apache-Coyote/1.1
|
32
|
+
Content-Type:
|
33
|
+
- application/json;charset=UTF-8
|
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?company-name=IBM
|
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="dixy4z5VMylJTypqa3abkuEnVrjFtb5V5hd9DpMKB0",
|
54
|
+
oauth_signature="OOD9beldHTV5d9a6fVpPUqOB%2BPs%3D", oauth_signature_method="HMAC-SHA1",
|
55
|
+
oauth_timestamp="1365631799", 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
|
+
X-Li-Request-Id:
|
65
|
+
- L00YMW359U
|
66
|
+
Vary:
|
67
|
+
- ! '*'
|
68
|
+
Transfer-Encoding:
|
69
|
+
- chunked
|
70
|
+
Server:
|
71
|
+
- Apache-Coyote/1.1
|
72
|
+
Date:
|
73
|
+
- Wed, 10 Apr 2013 22:09:58 GMT
|
74
|
+
X-Li-Format:
|
75
|
+
- json
|
76
|
+
Content-Type:
|
77
|
+
- application/json;charset=UTF-8
|
78
|
+
body:
|
79
|
+
encoding: UTF-8
|
80
|
+
string: ! "{\n \"numResults\": 6,\n \"people\": {\n \"_total\": 6,\n \"values\":
|
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{\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}"
|
90
|
+
http_version: '1.1'
|
91
|
+
recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
|
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
|
@@ -0,0 +1,100 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.linkedin.com/v1/people-search?first-name=Giliardi&last-name=Pires
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Li-Format:
|
11
|
+
- json
|
12
|
+
User-Agent:
|
13
|
+
- OAuth gem v0.4.7
|
14
|
+
Authorization:
|
15
|
+
- OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="eq8g0jFLe2FsDxO255PW6UqoZ8lwJAqiIJCm3qEKF8",
|
16
|
+
oauth_signature="D1xMNnx7aOxDotnPt1mtEdbJPlU%3D", oauth_signature_method="HMAC-SHA1",
|
17
|
+
oauth_timestamp="1365631656", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089",
|
18
|
+
oauth_version="1.0"
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 200
|
22
|
+
message: OK
|
23
|
+
headers:
|
24
|
+
Vary:
|
25
|
+
- ! '*'
|
26
|
+
Transfer-Encoding:
|
27
|
+
- chunked
|
28
|
+
Server:
|
29
|
+
- Apache-Coyote/1.1
|
30
|
+
X-Li-Format:
|
31
|
+
- json
|
32
|
+
X-Li-Request-Id:
|
33
|
+
- CH30LTU9DW
|
34
|
+
Date:
|
35
|
+
- Wed, 10 Apr 2013 22:07:36 GMT
|
36
|
+
Content-Type:
|
37
|
+
- application/json;charset=UTF-8
|
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?first-name=Charles&last-name=Garcia
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: ''
|
49
|
+
headers:
|
50
|
+
X-Li-Format:
|
51
|
+
- json
|
52
|
+
User-Agent:
|
53
|
+
- OAuth gem v0.4.7
|
54
|
+
Authorization:
|
55
|
+
- OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="lTIll68hM4A1tc0I56h92w5znsrjFfJ4nDvKpSqDfg",
|
56
|
+
oauth_signature="AhGLaPTVAJvv8pncUjz2j8C6%2B%2FA%3D", oauth_signature_method="HMAC-SHA1",
|
57
|
+
oauth_timestamp="1365632102", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089",
|
58
|
+
oauth_version="1.0"
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
Vary:
|
65
|
+
- ! '*'
|
66
|
+
Transfer-Encoding:
|
67
|
+
- chunked
|
68
|
+
Server:
|
69
|
+
- Apache-Coyote/1.1
|
70
|
+
X-Li-Request-Id:
|
71
|
+
- 6AXWFPE8I6
|
72
|
+
X-Li-Format:
|
73
|
+
- json
|
74
|
+
Date:
|
75
|
+
- Wed, 10 Apr 2013 22:15:03 GMT
|
76
|
+
Content-Type:
|
77
|
+
- application/json;charset=UTF-8
|
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},\n{\n
|
83
|
+
\"firstName\": \"Charles R.\",\n \"id\":
|
84
|
+
\"NjwO1vU6P6\",\n \"lastName\": \"Garcia Jr.\"\n },\n {\n
|
85
|
+
\"firstName\": \"Charles\",\n \"id\": \"j8ZczJo44W\",\n \"lastName\":
|
86
|
+
\"Garcia-Tobin\"\n },\n {\n \"firstName\": \"Charles\",\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
|
+
http_version: '1.1'
|
99
|
+
recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
|
100
|
+
recorded_with: VCR 2.5.0
|