linkedin2 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/example-linkedin.yml +4 -0
- data/lib/linkedin/api.rb +11 -0
- data/lib/linkedin/api/authentication.rb +1 -3
- data/lib/linkedin/api/companies.rb +14 -0
- data/lib/linkedin/api/groups.rb +6 -0
- data/lib/linkedin/api/industries.rb +173 -0
- data/lib/linkedin/api/jobs.rb +6 -0
- data/lib/linkedin/api/permissions.rb +43 -0
- data/lib/linkedin/api/profiles.rb +23 -0
- data/lib/linkedin/base.rb +28 -0
- data/lib/linkedin/client.rb +67 -9
- data/lib/linkedin/company.rb +20 -0
- data/lib/linkedin/configuration.rb +14 -28
- data/lib/linkedin/error.rb +21 -1
- data/lib/linkedin/faraday_middleware.rb +10 -0
- data/lib/linkedin/faraday_middleware/linkedin_error_response.rb +28 -0
- data/lib/linkedin/faraday_middleware/linkedin_format_request.rb +27 -0
- data/lib/linkedin/industry.rb +23 -0
- data/lib/linkedin/profile.rb +20 -0
- data/lib/linkedin/version.rb +1 -1
- data/lib/linkedin2.rb +52 -3
- data/linkedin.gemspec +5 -0
- data/spec/api/companies_spec.rb +37 -0
- data/spec/api/groups_spec.rb +22 -0
- data/spec/api/jobs_spec.rb +31 -0
- data/spec/api/profiles_spec.rb +109 -0
- data/spec/faraday_middleware/linkedin_error_response_spec.rb +47 -0
- data/spec/fixtures/requests/access_token.yml +37 -0
- data/spec/fixtures/requests/company-search/by_keywords_options_with_fields.yml +232 -0
- data/spec/fixtures/requests/company-search/by_keywords_string_parameter.yml +80 -0
- data/spec/fixtures/requests/company-search/by_single_keywords_option.yml +80 -0
- data/spec/fixtures/requests/company-search/by_single_keywords_option_with_facets_to_return.yml +80 -0
- data/spec/fixtures/requests/company-search/by_single_keywords_option_with_pagination.yml +74 -0
- data/spec/fixtures/requests/company.yml +81 -0
- data/spec/fixtures/requests/invalid.yml +53 -0
- data/spec/fixtures/requests/people-search/by_company_name_option.yml +93 -0
- data/spec/fixtures/requests/people-search/by_first_name_and_last_name_options.yml +100 -0
- data/spec/fixtures/requests/people-search/by_first_name_and_last_name_options_with_fields.yml +112 -0
- data/spec/fixtures/requests/people-search/by_keywords_string_parameter.yml +53 -0
- data/spec/fixtures/requests/people-search/by_single_keywords_option.yml +53 -0
- data/spec/fixtures/requests/people-search/by_single_keywords_option_with_pagination.yml +45 -0
- data/spec/fixtures/requests/request_token/request_token.yml +37 -0
- data/spec/fixtures/requests/request_token/with_callback.yml +37 -0
- data/spec/spec_helper.rb +17 -0
- metadata +132 -3
data/spec/fixtures/requests/company-search/by_single_keywords_option_with_facets_to_return.yml
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.linkedin.com/v1/company-search?facets=industry&keywords=apple
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Li-Format:
|
11
|
+
- json
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="FU07WVy5LyepRG8O99eNUI0fqIxdghVO9gXhSQAOA",
|
14
|
+
oauth_signature="51O%2BsP4hpjq93vwrFm2zrox0xfI%3D", oauth_signature_method="HMAC-SHA1",
|
15
|
+
oauth_timestamp="1365631653", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089",
|
16
|
+
oauth_version="1.0"
|
17
|
+
User-Agent:
|
18
|
+
- OAuth gem v0.4.7
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 200
|
22
|
+
message: OK
|
23
|
+
headers:
|
24
|
+
X-Li-Request-Id:
|
25
|
+
- G21FIZ5M8V
|
26
|
+
X-Li-Format:
|
27
|
+
- json
|
28
|
+
Date:
|
29
|
+
- Wed, 10 Apr 2013 22:07:33 GMT
|
30
|
+
Vary:
|
31
|
+
- ! '*'
|
32
|
+
Server:
|
33
|
+
- Apache-Coyote/1.1
|
34
|
+
Content-Type:
|
35
|
+
- application/json;charset=UTF-8
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
encoding: UTF-8
|
40
|
+
string: ! "{\n \"companies\": {\n \"_count\": 10,\n \"_start\": 0,\n
|
41
|
+
\ \"_total\": 8450,\n \"values\": [\n {\n \"id\": 162479,\n
|
42
|
+
\ \"name\": \"Apple\"\n },\n {\n \"id\": 19271,\n \"name\":
|
43
|
+
\"Apple Vacations\"\n },\n {\n \"id\": 778626,\n \"name\":
|
44
|
+
\"Big Apple Holdings, Inc. dba Big Apple International Realty\"\n },\n
|
45
|
+
\ {\n \"id\": 112136,\n \"name\": \"Apple & Associates\"\n
|
46
|
+
\ },\n {\n \"id\": 772044,\n \"name\": \"Stone Apple
|
47
|
+
Solutions\"\n },\n {\n \"id\": 2135525,\n \"name\":
|
48
|
+
\"iSquare - Apple Authorized Distributor in Greece & Cyprus\"\n },\n
|
49
|
+
\ {\n \"id\": 2303504,\n \"name\": \"Filex Apple Store &
|
50
|
+
Support\"\n },\n {\n \"id\": 2419290,\n \"name\":
|
51
|
+
\"Apple Nieuws Vlaanderen\"\n },\n {\n \"id\": 2260437,\n
|
52
|
+
\ \"name\": \"OGGO - Services Apple Macintosh\"\n },\n {\n
|
53
|
+
\ \"id\": 1049054,\n \"name\": \"Apple Crumble\"\n }\n ]\n
|
54
|
+
\ },\n \"facets\": {\n \"_total\": 1,\n \"values\": [{\n \"buckets\":
|
55
|
+
{\n \"_total\": 10,\n \"values\": [\n {\n \"code\":
|
56
|
+
\"96\",\n \"count\": 2062,\n \"name\": \"Information
|
57
|
+
Technology and Services\",\n \"selected\": false\n },\n
|
58
|
+
\ {\n \"code\": \"4\",\n \"count\": 1031,\n
|
59
|
+
\ \"name\": \"Computer Software\",\n \"selected\": false\n
|
60
|
+
\ },\n {\n \"code\": \"6\",\n \"count\":
|
61
|
+
472,\n \"name\": \"Internet\",\n \"selected\": false\n
|
62
|
+
\ },\n {\n \"code\": \"3\",\n \"count\":
|
63
|
+
415,\n \"name\": \"Computer Hardware\",\n \"selected\":
|
64
|
+
false\n },\n {\n \"code\": \"80\",\n \"count\":
|
65
|
+
348,\n \"name\": \"Marketing and Advertising\",\n \"selected\":
|
66
|
+
false\n },\n {\n \"code\": \"24\",\n \"count\":
|
67
|
+
312,\n \"name\": \"Consumer Electronics\",\n \"selected\":
|
68
|
+
false\n },\n {\n \"code\": \"27\",\n \"count\":
|
69
|
+
206,\n \"name\": \"Retail\",\n \"selected\": false\n
|
70
|
+
\ },\n {\n \"code\": \"109\",\n \"count\":
|
71
|
+
185,\n \"name\": \"Computer Games\",\n \"selected\":
|
72
|
+
false\n },\n {\n \"code\": \"8\",\n \"count\":
|
73
|
+
171,\n \"name\": \"Telecommunications\",\n \"selected\":
|
74
|
+
false\n },\n {\n \"code\": \"126\",\n \"count\":
|
75
|
+
164,\n \"name\": \"Media Production\",\n \"selected\":
|
76
|
+
false\n }\n ]\n },\n \"code\": \"industry\",\n \"name\":
|
77
|
+
\"Industry\"\n }]\n },\n \"numResults\": 8450\n}"
|
78
|
+
http_version: '1.1'
|
79
|
+
recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
|
80
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,74 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.linkedin.com/v1/company-search?count=5&keywords=apple&start=5
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Li-Format:
|
11
|
+
- json
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="UCRIU2SBembgaUTMw9aBAK0tCDnDuxPG4GzClCmcVQ",
|
14
|
+
oauth_signature="46tFOgfxDKiVNID1XIHrpoAs7zA%3D", oauth_signature_method="HMAC-SHA1",
|
15
|
+
oauth_timestamp="1365631654", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089",
|
16
|
+
oauth_version="1.0"
|
17
|
+
User-Agent:
|
18
|
+
- OAuth gem v0.4.7
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 200
|
22
|
+
message: OK
|
23
|
+
headers:
|
24
|
+
X-Li-Request-Id:
|
25
|
+
- YMZX3QW2A1
|
26
|
+
X-Li-Format:
|
27
|
+
- json
|
28
|
+
Date:
|
29
|
+
- Wed, 10 Apr 2013 22:07:33 GMT
|
30
|
+
Vary:
|
31
|
+
- ! '*'
|
32
|
+
Server:
|
33
|
+
- Apache-Coyote/1.1
|
34
|
+
Content-Type:
|
35
|
+
- application/json;charset=UTF-8
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
encoding: UTF-8
|
40
|
+
string: ! "{\n \"companies\": {\n \"_count\": 5,\n \"_start\": 5,\n \"_total\":
|
41
|
+
8450,\n \"values\": [\n {\n \"id\": 2135525,\n \"name\":
|
42
|
+
\"iSquare - Apple Authorized Distributor in Greece & Cyprus\"\n },\n
|
43
|
+
\ {\n \"id\": 2303504,\n \"name\": \"Filex Apple Store &
|
44
|
+
Support\"\n },\n {\n \"id\": 2419290,\n \"name\":
|
45
|
+
\"Apple Nieuws Vlaanderen\"\n },\n {\n \"id\": 2260437,\n
|
46
|
+
\ \"name\": \"OGGO - Services Apple Macintosh\"\n },\n {\n
|
47
|
+
\ \"id\": 1049054,\n \"name\": \"Apple Crumble\"\n }\n ]\n
|
48
|
+
\ },\n \"facets\": {\n \"_total\": 1,\n \"values\": [{\n \"buckets\":
|
49
|
+
{\n \"_total\": 10,\n \"values\": [\n {\n \"code\":
|
50
|
+
\"us:0\",\n \"count\": 2511,\n \"name\": \"United States\",\n
|
51
|
+
\ \"selected\": false\n },\n {\n \"code\":
|
52
|
+
\"gb:0\",\n \"count\": 702,\n \"name\": \"United Kingdom\",\n
|
53
|
+
\ \"selected\": false\n },\n {\n \"code\":
|
54
|
+
\"us:84\",\n \"count\": 322,\n \"name\": \"San Francisco
|
55
|
+
Bay Area\",\n \"selected\": false\n },\n {\n
|
56
|
+
\ \"code\": \"us:70\",\n \"count\": 285,\n \"name\":
|
57
|
+
\"Greater New York City Area\",\n \"selected\": false\n },\n
|
58
|
+
\ {\n \"code\": \"nl:0\",\n \"count\": 284,\n
|
59
|
+
\ \"name\": \"Netherlands\",\n \"selected\": false\n
|
60
|
+
\ },\n {\n \"code\": \"ca:0\",\n \"count\":
|
61
|
+
266,\n \"name\": \"Canada\",\n \"selected\": false\n
|
62
|
+
\ },\n {\n \"code\": \"au:0\",\n \"count\":
|
63
|
+
195,\n \"name\": \"Australia\",\n \"selected\": false\n
|
64
|
+
\ },\n {\n \"code\": \"in:0\",\n \"count\":
|
65
|
+
186,\n \"name\": \"India\",\n \"selected\": false\n
|
66
|
+
\ },\n {\n \"code\": \"it:0\",\n \"count\":
|
67
|
+
177,\n \"name\": \"Italy\",\n \"selected\": false\n
|
68
|
+
\ },\n {\n \"code\": \"us:49\",\n \"count\":
|
69
|
+
173,\n \"name\": \"Greater Los Angeles Area\",\n \"selected\":
|
70
|
+
false\n }\n ]\n },\n \"code\": \"location\",\n \"name\":
|
71
|
+
\"Location\"\n }]\n },\n \"numResults\": 8450\n}"
|
72
|
+
http_version: '1.1'
|
73
|
+
recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
|
74
|
+
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\":
|
76
|
+
{\n \"_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,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.linkedin.com/v1/people/~?oauth2_access_token=&format=json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 401
|
15
|
+
message:
|
16
|
+
headers:
|
17
|
+
server:
|
18
|
+
- Apache-Coyote/1.1
|
19
|
+
x-li-request-id:
|
20
|
+
- TV9SBPHRO8
|
21
|
+
date:
|
22
|
+
- Sat, 21 Sep 2013 15:36:07 GMT
|
23
|
+
vary:
|
24
|
+
- '*'
|
25
|
+
x-li-format:
|
26
|
+
- json
|
27
|
+
content-type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
x-li-fabric:
|
30
|
+
- PROD-ELA4
|
31
|
+
age:
|
32
|
+
- '0'
|
33
|
+
transfer-encoding:
|
34
|
+
- chunked
|
35
|
+
connection:
|
36
|
+
- keep-alive
|
37
|
+
x-li-pop:
|
38
|
+
- PROD-ELA4
|
39
|
+
x-li-uuid:
|
40
|
+
- 0KX6sZH0JROQrB7iKysAAA==
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: |-
|
44
|
+
{
|
45
|
+
"errorCode": 0,
|
46
|
+
"message": "Empty oauth2_access_token",
|
47
|
+
"requestId": "TV9SBPHRO8",
|
48
|
+
"status": 401,
|
49
|
+
"timestamp": 1379777767455
|
50
|
+
}
|
51
|
+
http_version:
|
52
|
+
recorded_at: Sat, 21 Sep 2013 15:36:08 GMT
|
53
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,93 @@
|
|
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
|
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}"
|
91
|
+
http_version: '1.1'
|
92
|
+
recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
|
93
|
+
recorded_with: VCR 2.5.0
|
@@ -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,
|
83
|
+
CFA\"\n },\n {\n \"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
|
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}"
|
98
|
+
http_version: '1.1'
|
99
|
+
recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
|
100
|
+
recorded_with: VCR 2.5.0
|