linkedin 0.3.7 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/changelog.markdown +15 -0
- data/lib/linked_in/api/query_methods.rb +15 -0
- data/lib/linked_in/api/update_methods.rb +16 -4
- data/lib/linked_in/helpers/authorization.rb +4 -3
- data/lib/linked_in/version.rb +2 -2
- data/linkedin.gemspec +2 -2
- data/spec/cases/api_spec.rb +49 -4
- data/spec/cases/oauth_spec.rb +13 -0
- data/spec/cases/search_spec.rb +35 -37
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_company_name_option.yml +98 -124
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options.yml +120 -111
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options_with_fields.yml +137 -62
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_keywords_string_parameter.yml +64 -128
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option.yml +64 -128
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option_with_pagination.yml +39 -120
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_options_with_fields.yml +26 -243
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_string_parameter.yml +147 -64
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option.yml +147 -62
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_facets_to_return.yml +147 -62
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_pagination.yml +127 -57
- metadata +81 -28
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_a_facet.yml +0 -111
data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_keywords_string_parameter.yml
CHANGED
@@ -1,136 +1,72 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
5
|
uri: https://api.linkedin.com:443/v1/people-search?keywords=github
|
6
6
|
body:
|
7
|
-
headers:
|
8
|
-
|
9
|
-
- OAuth gem v0.4.4
|
10
|
-
authorization:
|
11
|
-
- OAuth oauth_consumer_key="C2UfeHxZrij1PyppziDLbdUQti6f4TLaL-N0dyiV_us4Pj18_vsHcjKIX0i69fSn",
|
12
|
-
oauth_nonce="KenR6ArkWDl5wqulIJZyecJGRWPE7CEDy9COzkWQXR8", oauth_signature="aPgVcIv2aiTr74Wh3sujsTBD4%2B8%3D",
|
13
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1305061358", oauth_token="afb39322-be32-4b83-83a0-7e35e18d3082",
|
14
|
-
oauth_version="1.0"
|
15
|
-
x-li-format:
|
7
|
+
headers:
|
8
|
+
x-li-format:
|
16
9
|
- json
|
17
|
-
|
18
|
-
|
10
|
+
authorization:
|
11
|
+
- OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="KJPWM7qluIAetEW5kk8NSQuB3ssr1S2v6HBpofhFY", oauth_signature="LEh2O3mlLU6GqhsuU4admW%2B1hDw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1365631655", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089", oauth_version="1.0"
|
12
|
+
user-agent:
|
13
|
+
- OAuth gem v0.4.7
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
19
16
|
code: 200
|
20
17
|
message: OK
|
21
|
-
headers:
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
- Apache-Coyote/1.1
|
26
|
-
date:
|
27
|
-
- Tue, 10 May 2011 21:02:40 GMT
|
28
|
-
x-li-format:
|
18
|
+
headers:
|
19
|
+
x-li-request-id:
|
20
|
+
- L4BQ08FWG8
|
21
|
+
x-li-format:
|
29
22
|
- json
|
30
|
-
|
31
|
-
-
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
\ \"id\": \"YkdnFl04s_\",\n \"lastName\": \"Pires\",\n \"firstName\":
|
36
|
-
\"Giliardi\"\n },\n {\n \"id\": \"5oELVyNfN3\",\n \"lastName\":
|
37
|
-
\"Alencar\",\n \"firstName\": \"Ivan\"\n },\n {\n \"id\":
|
38
|
-
\"k-wxkgFDYL\",\n \"lastName\": \"Private\",\n \"firstName\":
|
39
|
-
\"\"\n },\n {\n \"id\": \"xT-OdnpncE\",\n \"lastName\":
|
40
|
-
\"Private\",\n \"firstName\": \"\"\n },\n {\n \"id\":
|
41
|
-
\"GAG-lE3XVw\",\n \"lastName\": \"Private\",\n \"firstName\":
|
42
|
-
\"\"\n },\n {\n \"id\": \"z2XMcxa_dR\",\n \"lastName\":
|
43
|
-
\"M.\",\n \"firstName\": \"Stephen\"\n },\n {\n \"id\":
|
44
|
-
\"cPANxsayPK\",\n \"lastName\": \"Private\",\n \"firstName\":
|
45
|
-
\"\"\n },\n {\n \"id\": \"SbMT09zllx\",\n \"lastName\":
|
46
|
-
\"L.\",\n \"firstName\": \"Rodolfo\"\n },\n {\n \"id\":
|
47
|
-
\"GrH-5d4mH1\",\n \"lastName\": \"Barnaba\",\n \"firstName\":
|
48
|
-
\"Marcello\"\n },\n {\n \"id\": \"pdzrGpyP0h\",\n \"lastName\":
|
49
|
-
\"C.\",\n \"firstName\": \"Pablo\"\n }\n ],\n \"_count\":
|
50
|
-
10,\n \"_start\": 0,\n \"_total\": 110\n }\n}"
|
51
|
-
http_version: '1.1'
|
52
|
-
- !ruby/struct:VCR::HTTPInteraction
|
53
|
-
request: !ruby/struct:VCR::Request
|
54
|
-
method: :post
|
55
|
-
uri: https://api.linkedin.com:443/uas/oauth/requestToken
|
56
|
-
body:
|
57
|
-
headers:
|
58
|
-
user-agent:
|
59
|
-
- OAuth gem v0.4.5
|
60
|
-
content-length:
|
61
|
-
- '0'
|
62
|
-
authorization:
|
63
|
-
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="oob",
|
64
|
-
oauth_consumer_key="a39e395e-bc38-4d5b-ae3b-52f840f821e9", oauth_nonce="PP414dguMZJe10RlUgLPWaLFhdu8pJ14NoYSKQ36mg",
|
65
|
-
oauth_signature="utkviYJALT93h%2BJ738IdgmWYQMg%3D", oauth_signature_method="HMAC-SHA1",
|
66
|
-
oauth_timestamp="1329922222", oauth_version="1.0"
|
67
|
-
response: !ruby/struct:VCR::Response
|
68
|
-
status: !ruby/struct:VCR::ResponseStatus
|
69
|
-
code: 401
|
70
|
-
message: Unauthorized
|
71
|
-
headers:
|
72
|
-
server:
|
23
|
+
date:
|
24
|
+
- Wed, 10 Apr 2013 22:07:35 GMT
|
25
|
+
vary:
|
26
|
+
- "*"
|
27
|
+
server:
|
73
28
|
- Apache-Coyote/1.1
|
74
|
-
|
75
|
-
-
|
76
|
-
|
77
|
-
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
width=\"129\" height=\"36\" alt=\"Linkedin\"></a>\n</div>\n\n<div id=\"main\"
|
119
|
-
class=\"error404\">\n <h1>Page Not Found</h1>\n <p>The page you requested
|
120
|
-
is no longer available, or cannot be found.</p>\n <p class=\"bottom\">Please
|
121
|
-
double-check the URL (address) you used, or <a href=\"mailto:customer_service@linkedin.com\">contact
|
122
|
-
us</a> if you feel you have reached this page in error.</p>\n <p class=\"top
|
123
|
-
helper\"><strong>Click the “Back” button on your browser or <a href=\"/home\">go
|
124
|
-
to the home page</a>.</strong></p>\n \n <br>\n \n <p><strong>Are you looking
|
125
|
-
for any of these LinkedIn features?</strong></p>\n <ul>\n <li><a href=\"/search\">Find
|
126
|
-
People</a></li>\n <li><a href=\"/jobs\">Find Jobs</a></li>\n <li><a href=\"/services\">Find
|
127
|
-
Services</a></li>\n <li><a href=\"/reconnect?displayCategories=\">Reconnect
|
128
|
-
with Colleagues</a></li>\n </ul>\n \n <ul>\n <li><a href=\"/static?key=outlook_toolbar_download\">Outlook
|
129
|
-
Toolbar</a></li>\n <li><a href=\"/static?key=firefox_companion_download\">Firefox
|
130
|
-
Companion</a></li>\n <li><a href=\"/static?key=ie_toolbar_download\">Internet
|
131
|
-
Explorer Toolbar</a></li>\n <li><a href=\"/static?key=groups_info\">LinkedIn
|
132
|
-
for Groups</a></li>\n </ul>\n\n <ul>\n <li><a href=\"https://www.linkedin.com/secure/settings\">My
|
133
|
-
Account</a></li>\n <li><a href=\"/profile\">My Profile</a></li>\n <li><a
|
134
|
-
href=\"/connections\">My Connections</a></li>\n <li><a href=\"/inviteMany\">Add
|
135
|
-
Connections</a></li>\n </ul>\n <div class=\"spacer\"> </div>\n</div>\n\n</body>\n</html>"
|
136
|
-
http_version: '1.1'
|
29
|
+
content-type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
transfer-encoding:
|
32
|
+
- chunked
|
33
|
+
body: |-
|
34
|
+
{
|
35
|
+
"numResults": 6,
|
36
|
+
"people": {
|
37
|
+
"_total": 6,
|
38
|
+
"values": [
|
39
|
+
{
|
40
|
+
"firstName": "Shay",
|
41
|
+
"id": "ucXjUw4M9J",
|
42
|
+
"lastName": "Frendt"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"firstName": "Scott",
|
46
|
+
"id": "t6mvVsY3df",
|
47
|
+
"lastName": "Smith"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"firstName": "Philip",
|
51
|
+
"id": "ZeSnXwtz6Y",
|
52
|
+
"lastName": "Corliss"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"firstName": "Jay",
|
56
|
+
"id": "i24wDA2GrH",
|
57
|
+
"lastName": "Beavers"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"firstName": "Chris",
|
61
|
+
"id": "SJBelisgHh",
|
62
|
+
"lastName": "Wiswell"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"firstName": "Satish",
|
66
|
+
"id": "V1FPuGot-I",
|
67
|
+
"lastName": "Talim"
|
68
|
+
}
|
69
|
+
]
|
70
|
+
}
|
71
|
+
}
|
72
|
+
http_version: "1.1"
|
@@ -1,136 +1,72 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
5
|
uri: https://api.linkedin.com:443/v1/people-search?keywords=github
|
6
6
|
body:
|
7
|
-
headers:
|
8
|
-
|
9
|
-
- OAuth gem v0.4.4
|
10
|
-
authorization:
|
11
|
-
- OAuth oauth_consumer_key="C2UfeHxZrij1PyppziDLbdUQti6f4TLaL-N0dyiV_us4Pj18_vsHcjKIX0i69fSn",
|
12
|
-
oauth_nonce="neCS0f9bL8RywiUOvLLDBfAwnc3wmlyFH3N2k4v2PmU", oauth_signature="0EgRN6GvhW3WdWMS8g0gdbOp9Do%3D",
|
13
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1305061361", oauth_token="afb39322-be32-4b83-83a0-7e35e18d3082",
|
14
|
-
oauth_version="1.0"
|
15
|
-
x-li-format:
|
7
|
+
headers:
|
8
|
+
x-li-format:
|
16
9
|
- json
|
17
|
-
|
18
|
-
|
10
|
+
authorization:
|
11
|
+
- OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="DlBgAEJHkDYAnMMZwzFObsUNcCmRbzFldB4dV1yeE", oauth_signature="RLiPr%2FC1bq9Dv29W3mjezy1of54%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1365631655", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089", oauth_version="1.0"
|
12
|
+
user-agent:
|
13
|
+
- OAuth gem v0.4.7
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
19
16
|
code: 200
|
20
17
|
message: OK
|
21
|
-
headers:
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
- Apache-Coyote/1.1
|
26
|
-
date:
|
27
|
-
- Tue, 10 May 2011 21:02:41 GMT
|
28
|
-
x-li-format:
|
18
|
+
headers:
|
19
|
+
x-li-request-id:
|
20
|
+
- 5BE8O0G2CK
|
21
|
+
x-li-format:
|
29
22
|
- json
|
30
|
-
|
31
|
-
-
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
\ \"id\": \"YkdnFl04s_\",\n \"lastName\": \"Pires\",\n \"firstName\":
|
36
|
-
\"Giliardi\"\n },\n {\n \"id\": \"5oELVyNfN3\",\n \"lastName\":
|
37
|
-
\"Alencar\",\n \"firstName\": \"Ivan\"\n },\n {\n \"id\":
|
38
|
-
\"k-wxkgFDYL\",\n \"lastName\": \"Private\",\n \"firstName\":
|
39
|
-
\"\"\n },\n {\n \"id\": \"xT-OdnpncE\",\n \"lastName\":
|
40
|
-
\"Private\",\n \"firstName\": \"\"\n },\n {\n \"id\":
|
41
|
-
\"GAG-lE3XVw\",\n \"lastName\": \"Private\",\n \"firstName\":
|
42
|
-
\"\"\n },\n {\n \"id\": \"z2XMcxa_dR\",\n \"lastName\":
|
43
|
-
\"M.\",\n \"firstName\": \"Stephen\"\n },\n {\n \"id\":
|
44
|
-
\"cPANxsayPK\",\n \"lastName\": \"Private\",\n \"firstName\":
|
45
|
-
\"\"\n },\n {\n \"id\": \"SbMT09zllx\",\n \"lastName\":
|
46
|
-
\"L.\",\n \"firstName\": \"Rodolfo\"\n },\n {\n \"id\":
|
47
|
-
\"GrH-5d4mH1\",\n \"lastName\": \"Barnaba\",\n \"firstName\":
|
48
|
-
\"Marcello\"\n },\n {\n \"id\": \"pdzrGpyP0h\",\n \"lastName\":
|
49
|
-
\"C.\",\n \"firstName\": \"Pablo\"\n }\n ],\n \"_count\":
|
50
|
-
10,\n \"_start\": 0,\n \"_total\": 110\n }\n}"
|
51
|
-
http_version: '1.1'
|
52
|
-
- !ruby/struct:VCR::HTTPInteraction
|
53
|
-
request: !ruby/struct:VCR::Request
|
54
|
-
method: :post
|
55
|
-
uri: https://api.linkedin.com:443/uas/oauth/requestToken
|
56
|
-
body:
|
57
|
-
headers:
|
58
|
-
user-agent:
|
59
|
-
- OAuth gem v0.4.5
|
60
|
-
content-length:
|
61
|
-
- '0'
|
62
|
-
authorization:
|
63
|
-
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="oob",
|
64
|
-
oauth_consumer_key="a39e395e-bc38-4d5b-ae3b-52f840f821e9", oauth_nonce="UuoHVjUP4dd5Soqo0WrqODrxeWduE0D7hTTfgqeEgc",
|
65
|
-
oauth_signature="FLU2BhoUM1I1AwQ5Nv8EtL2O6B8%3D", oauth_signature_method="HMAC-SHA1",
|
66
|
-
oauth_timestamp="1329922223", oauth_version="1.0"
|
67
|
-
response: !ruby/struct:VCR::Response
|
68
|
-
status: !ruby/struct:VCR::ResponseStatus
|
69
|
-
code: 401
|
70
|
-
message: Unauthorized
|
71
|
-
headers:
|
72
|
-
server:
|
23
|
+
date:
|
24
|
+
- Wed, 10 Apr 2013 22:07:35 GMT
|
25
|
+
vary:
|
26
|
+
- "*"
|
27
|
+
server:
|
73
28
|
- Apache-Coyote/1.1
|
74
|
-
|
75
|
-
-
|
76
|
-
|
77
|
-
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
width=\"129\" height=\"36\" alt=\"Linkedin\"></a>\n</div>\n\n<div id=\"main\"
|
119
|
-
class=\"error404\">\n <h1>Page Not Found</h1>\n <p>The page you requested
|
120
|
-
is no longer available, or cannot be found.</p>\n <p class=\"bottom\">Please
|
121
|
-
double-check the URL (address) you used, or <a href=\"mailto:customer_service@linkedin.com\">contact
|
122
|
-
us</a> if you feel you have reached this page in error.</p>\n <p class=\"top
|
123
|
-
helper\"><strong>Click the “Back” button on your browser or <a href=\"/home\">go
|
124
|
-
to the home page</a>.</strong></p>\n \n <br>\n \n <p><strong>Are you looking
|
125
|
-
for any of these LinkedIn features?</strong></p>\n <ul>\n <li><a href=\"/search\">Find
|
126
|
-
People</a></li>\n <li><a href=\"/jobs\">Find Jobs</a></li>\n <li><a href=\"/services\">Find
|
127
|
-
Services</a></li>\n <li><a href=\"/reconnect?displayCategories=\">Reconnect
|
128
|
-
with Colleagues</a></li>\n </ul>\n \n <ul>\n <li><a href=\"/static?key=outlook_toolbar_download\">Outlook
|
129
|
-
Toolbar</a></li>\n <li><a href=\"/static?key=firefox_companion_download\">Firefox
|
130
|
-
Companion</a></li>\n <li><a href=\"/static?key=ie_toolbar_download\">Internet
|
131
|
-
Explorer Toolbar</a></li>\n <li><a href=\"/static?key=groups_info\">LinkedIn
|
132
|
-
for Groups</a></li>\n </ul>\n\n <ul>\n <li><a href=\"https://www.linkedin.com/secure/settings\">My
|
133
|
-
Account</a></li>\n <li><a href=\"/profile\">My Profile</a></li>\n <li><a
|
134
|
-
href=\"/connections\">My Connections</a></li>\n <li><a href=\"/inviteMany\">Add
|
135
|
-
Connections</a></li>\n </ul>\n <div class=\"spacer\"> </div>\n</div>\n\n</body>\n</html>"
|
136
|
-
http_version: '1.1'
|
29
|
+
content-type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
transfer-encoding:
|
32
|
+
- chunked
|
33
|
+
body: |-
|
34
|
+
{
|
35
|
+
"numResults": 6,
|
36
|
+
"people": {
|
37
|
+
"_total": 6,
|
38
|
+
"values": [
|
39
|
+
{
|
40
|
+
"firstName": "Shay",
|
41
|
+
"id": "ucXjUw4M9J",
|
42
|
+
"lastName": "Frendt"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"firstName": "Scott",
|
46
|
+
"id": "t6mvVsY3df",
|
47
|
+
"lastName": "Smith"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"firstName": "Philip",
|
51
|
+
"id": "ZeSnXwtz6Y",
|
52
|
+
"lastName": "Corliss"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"firstName": "Jay",
|
56
|
+
"id": "i24wDA2GrH",
|
57
|
+
"lastName": "Beavers"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"firstName": "Chris",
|
61
|
+
"id": "SJBelisgHh",
|
62
|
+
"lastName": "Wiswell"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"firstName": "Satish",
|
66
|
+
"id": "V1FPuGot-I",
|
67
|
+
"lastName": "Talim"
|
68
|
+
}
|
69
|
+
]
|
70
|
+
}
|
71
|
+
}
|
72
|
+
http_version: "1.1"
|
@@ -1,128 +1,47 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
5
|
uri: https://api.linkedin.com:443/v1/people-search?count=5&keywords=github&start=5
|
6
6
|
body:
|
7
|
-
headers:
|
8
|
-
|
9
|
-
- OAuth gem v0.4.4
|
10
|
-
authorization:
|
11
|
-
- OAuth oauth_consumer_key="C2UfeHxZrij1PyppziDLbdUQti6f4TLaL-N0dyiV_us4Pj18_vsHcjKIX0i69fSn",
|
12
|
-
oauth_nonce="efW9d0TjHFPkszKWMt55AyyIhu0lf0fqcX5562fL30", oauth_signature="NLhujA9Isu2Y%2FwFRXCpW9oFGip0%3D",
|
13
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1305061362", oauth_token="afb39322-be32-4b83-83a0-7e35e18d3082",
|
14
|
-
oauth_version="1.0"
|
15
|
-
x-li-format:
|
7
|
+
headers:
|
8
|
+
x-li-format:
|
16
9
|
- json
|
17
|
-
|
18
|
-
|
10
|
+
authorization:
|
11
|
+
- OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="PfrLyLbcfxXAJshwSsQ4YDPBk1OncuNV0RjgB4fbVEs", oauth_signature="16fUd%2BHUkWJULyxMCEbISV0Ltks%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1365631656", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089", oauth_version="1.0"
|
12
|
+
user-agent:
|
13
|
+
- OAuth gem v0.4.7
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
19
16
|
code: 200
|
20
17
|
message: OK
|
21
|
-
headers:
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
- Apache-Coyote/1.1
|
26
|
-
date:
|
27
|
-
- Tue, 10 May 2011 21:02:44 GMT
|
28
|
-
x-li-format:
|
18
|
+
headers:
|
19
|
+
x-li-request-id:
|
20
|
+
- JI3L4KN8K1
|
21
|
+
x-li-format:
|
29
22
|
- json
|
30
|
-
|
31
|
-
-
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
\ \"id\": \"z2XMcxa_dR\",\n \"lastName\": \"M.\",\n \"firstName\":
|
36
|
-
\"Stephen\"\n },\n {\n \"id\": \"cPANxsayPK\",\n \"lastName\":
|
37
|
-
\"Private\",\n \"firstName\": \"\"\n },\n {\n \"id\":
|
38
|
-
\"SbMT09zllx\",\n \"lastName\": \"L.\",\n \"firstName\": \"Rodolfo\"\n
|
39
|
-
\ },\n {\n \"id\": \"GrH-5d4mH1\",\n \"lastName\": \"Barnaba\",\n
|
40
|
-
\ \"firstName\": \"Marcello\"\n },\n {\n \"id\": \"pdzrGpyP0h\",\n
|
41
|
-
\ \"lastName\": \"C.\",\n \"firstName\": \"Pablo\"\n }\n ],\n
|
42
|
-
\ \"_count\": 5,\n \"_start\": 5,\n \"_total\": 110\n }\n}"
|
43
|
-
http_version: '1.1'
|
44
|
-
- !ruby/struct:VCR::HTTPInteraction
|
45
|
-
request: !ruby/struct:VCR::Request
|
46
|
-
method: :post
|
47
|
-
uri: https://api.linkedin.com:443/uas/oauth/requestToken
|
48
|
-
body:
|
49
|
-
headers:
|
50
|
-
user-agent:
|
51
|
-
- OAuth gem v0.4.5
|
52
|
-
content-length:
|
53
|
-
- '0'
|
54
|
-
authorization:
|
55
|
-
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="oob",
|
56
|
-
oauth_consumer_key="a39e395e-bc38-4d5b-ae3b-52f840f821e9", oauth_nonce="qNNn2PVI87k4RFxKbSolSwOWOlmcxO8bcWrofwTwTqU",
|
57
|
-
oauth_signature="MhkIBljWjbXfRQ8r4be9jbdDoeo%3D", oauth_signature_method="HMAC-SHA1",
|
58
|
-
oauth_timestamp="1329922224", oauth_version="1.0"
|
59
|
-
response: !ruby/struct:VCR::Response
|
60
|
-
status: !ruby/struct:VCR::ResponseStatus
|
61
|
-
code: 401
|
62
|
-
message: Unauthorized
|
63
|
-
headers:
|
64
|
-
server:
|
23
|
+
date:
|
24
|
+
- Wed, 10 Apr 2013 22:07:36 GMT
|
25
|
+
vary:
|
26
|
+
- "*"
|
27
|
+
server:
|
65
28
|
- Apache-Coyote/1.1
|
66
|
-
|
67
|
-
-
|
68
|
-
|
69
|
-
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
- json
|
86
|
-
user-agent:
|
87
|
-
- OAuth gem v0.4.5
|
88
|
-
authorization:
|
89
|
-
- OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="T6HlbQmLOSYpKReW5f62ynJ0v5bahq7DPXXtVt8",
|
90
|
-
oauth_signature="KAO8bptvgvyGmrzuXIcD3oT%2BOPw%3D", oauth_signature_method="HMAC-SHA1",
|
91
|
-
oauth_timestamp="1329991236", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
|
92
|
-
oauth_version="1.0"
|
93
|
-
response: !ruby/struct:VCR::Response
|
94
|
-
status: !ruby/struct:VCR::ResponseStatus
|
95
|
-
code: 404
|
96
|
-
message: Not Found
|
97
|
-
headers:
|
98
|
-
content-type:
|
99
|
-
- text/html
|
100
|
-
content-length:
|
101
|
-
- '1888'
|
102
|
-
date:
|
103
|
-
- Thu, 23 Feb 2012 10:00:37 GMT
|
104
|
-
server:
|
105
|
-
- lighttpd
|
106
|
-
body: ! "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n<head>\n
|
107
|
-
\ <title>404: Page Not Found</title>\n <meta http-equiv=\"content-type\" content=\"text/html;
|
108
|
-
charset=UTF-8\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/css/style.css\">\n</head>\n\n<body
|
109
|
-
class=\"errorpg\">\n\n<div id=\"header\">\n <a href=\"/home\"><img src=\"/img/logos/logo.gif\"
|
110
|
-
width=\"129\" height=\"36\" alt=\"Linkedin\"></a>\n</div>\n\n<div id=\"main\"
|
111
|
-
class=\"error404\">\n <h1>Page Not Found</h1>\n <p>The page you requested
|
112
|
-
is no longer available, or cannot be found.</p>\n <p class=\"bottom\">Please
|
113
|
-
double-check the URL (address) you used, or <a href=\"mailto:customer_service@linkedin.com\">contact
|
114
|
-
us</a> if you feel you have reached this page in error.</p>\n <p class=\"top
|
115
|
-
helper\"><strong>Click the “Back” button on your browser or <a href=\"/home\">go
|
116
|
-
to the home page</a>.</strong></p>\n \n <br>\n \n <p><strong>Are you looking
|
117
|
-
for any of these LinkedIn features?</strong></p>\n <ul>\n <li><a href=\"/search\">Find
|
118
|
-
People</a></li>\n <li><a href=\"/jobs\">Find Jobs</a></li>\n <li><a href=\"/services\">Find
|
119
|
-
Services</a></li>\n <li><a href=\"/reconnect?displayCategories=\">Reconnect
|
120
|
-
with Colleagues</a></li>\n </ul>\n \n <ul>\n <li><a href=\"/static?key=outlook_toolbar_download\">Outlook
|
121
|
-
Toolbar</a></li>\n <li><a href=\"/static?key=firefox_companion_download\">Firefox
|
122
|
-
Companion</a></li>\n <li><a href=\"/static?key=ie_toolbar_download\">Internet
|
123
|
-
Explorer Toolbar</a></li>\n <li><a href=\"/static?key=groups_info\">LinkedIn
|
124
|
-
for Groups</a></li>\n </ul>\n\n <ul>\n <li><a href=\"https://www.linkedin.com/secure/settings\">My
|
125
|
-
Account</a></li>\n <li><a href=\"/profile\">My Profile</a></li>\n <li><a
|
126
|
-
href=\"/connections\">My Connections</a></li>\n <li><a href=\"/inviteMany\">Add
|
127
|
-
Connections</a></li>\n </ul>\n <div class=\"spacer\"> </div>\n</div>\n\n</body>\n</html>"
|
128
|
-
http_version: '1.1'
|
29
|
+
content-type:
|
30
|
+
- application/json;charset=UTF-8
|
31
|
+
transfer-encoding:
|
32
|
+
- chunked
|
33
|
+
body: |-
|
34
|
+
{
|
35
|
+
"numResults": 6,
|
36
|
+
"people": {
|
37
|
+
"_count": 1,
|
38
|
+
"_start": 5,
|
39
|
+
"_total": 6,
|
40
|
+
"values": [{
|
41
|
+
"firstName": "Satish",
|
42
|
+
"id": "V1FPuGot-I",
|
43
|
+
"lastName": "Talim"
|
44
|
+
}]
|
45
|
+
}
|
46
|
+
}
|
47
|
+
http_version: "1.1"
|