linkedin 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. data/examples/authenticate.rb +1 -1
  2. data/examples/profile.rb +4 -0
  3. data/examples/sinatra.rb +77 -0
  4. data/lib/linked_in/api/query_methods.rb +25 -16
  5. data/lib/linked_in/api/update_methods.rb +20 -17
  6. data/lib/linked_in/errors.rb +1 -1
  7. data/lib/linked_in/helpers/request.rb +4 -1
  8. data/lib/linked_in/search.rb +27 -8
  9. data/lib/linked_in/version.rb +1 -1
  10. data/linkedin.gemspec +3 -3
  11. data/spec/cases/api_spec.rb +31 -0
  12. data/spec/cases/oauth_spec.rb +0 -1
  13. data/spec/cases/search_spec.rb +206 -0
  14. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_company_name_option.yml +135 -0
  15. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options.yml +122 -0
  16. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options_with_fields.yml +72 -0
  17. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_keywords_string_parameter.yml +136 -0
  18. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option.yml +136 -0
  19. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option_with_pagination.yml +128 -0
  20. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_options_with_fields.yml +252 -0
  21. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_string_parameter.yml +73 -0
  22. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option.yml +71 -0
  23. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_a_facet.yml +111 -0
  24. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_facets_to_return.yml +71 -0
  25. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_pagination.yml +66 -0
  26. metadata +53 -26
@@ -0,0 +1,135 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://api.linkedin.com:443/v1/people-search?company-name=linkedin
6
+ body:
7
+ headers:
8
+ user-agent:
9
+ - OAuth gem v0.4.4
10
+ authorization:
11
+ - OAuth oauth_consumer_key="C2UfeHxZrij1PyppziDLbdUQti6f4TLaL-N0dyiV_us4Pj18_vsHcjKIX0i69fSn",
12
+ oauth_nonce="5DbPHhxweU6eNBPoAJqkobtxNsZDDIgtmfF0sx3rmQE", oauth_signature="DkRDger8eQvtJq1i8%2FjHzrNAFis%3D",
13
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1305061368", oauth_token="afb39322-be32-4b83-83a0-7e35e18d3082",
14
+ oauth_version="1.0"
15
+ x-li-format:
16
+ - json
17
+ response: !ruby/struct:VCR::Response
18
+ status: !ruby/struct:VCR::ResponseStatus
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ content-type:
23
+ - application/json;charset=UTF-8
24
+ server:
25
+ - Apache-Coyote/1.1
26
+ date:
27
+ - Tue, 10 May 2011 21:02:49 GMT
28
+ x-li-format:
29
+ - json
30
+ vary:
31
+ - x-li-format,Accept-Encoding
32
+ transfer-encoding:
33
+ - chunked
34
+ body: ! "{\n \"numResults\": 5228,\n \"people\": {\n \"values\": [\n {\n
35
+ \ \"id\": \"VQcsz5Hp_h\",\n \"lastName\": \"Denker\",\n \"firstName\":
36
+ \"Donald\"\n },\n {\n \"id\": \"YEDghC612B\",\n \"lastName\":
37
+ \"S.\",\n \"firstName\": \"Daniel\"\n },\n {\n \"id\":
38
+ \"KMioNXVEg9\",\n \"lastName\": \"H.\",\n \"firstName\": \"Reid\"\n
39
+ \ },\n {\n \"id\": \"ILGTOKmto4\",\n \"lastName\": \"Ruff\",\n
40
+ \ \"firstName\": \"Lori\"\n },\n {\n \"id\": \"xr5jcMXKPm\",\n
41
+ \ \"lastName\": \"C.\",\n \"firstName\": \"Ed\"\n },\n {\n
42
+ \ \"id\": \"aeejoSqHsN\",\n \"lastName\": \"T.\",\n \"firstName\":
43
+ \"Brian\"\n },\n {\n \"id\": \"VYC0P9hxVN\",\n \"lastName\":
44
+ \"Giffen\",\n \"firstName\": \"Sean\"\n },\n {\n \"id\":
45
+ \"kWPJPI1lrJ\",\n \"lastName\": \"Seps\",\n \"firstName\": \"Chad\"\n
46
+ \ },\n {\n \"id\": \"1PYJr69P5V\",\n \"lastName\": \"Vasconcelos\",\n
47
+ \ \"firstName\": \"Cesar\"\n },\n {\n \"id\": \"AU5Dv63Fma\",\n
48
+ \ \"lastName\": \"Ling\",\n \"firstName\": \"James\"\n }\n
49
+ \ ],\n \"_count\": 10,\n \"_start\": 0,\n \"_total\": 110\n }\n}"
50
+ http_version: '1.1'
51
+ - !ruby/struct:VCR::HTTPInteraction
52
+ request: !ruby/struct:VCR::Request
53
+ method: :post
54
+ uri: https://api.linkedin.com:443/uas/oauth/requestToken
55
+ body:
56
+ headers:
57
+ user-agent:
58
+ - OAuth gem v0.4.5
59
+ content-length:
60
+ - '0'
61
+ authorization:
62
+ - OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="oob",
63
+ oauth_consumer_key="a39e395e-bc38-4d5b-ae3b-52f840f821e9", oauth_nonce="jCUtbvZXpwNVfrj2x0XmxFfQD55R4NoJqVnhgjKEno",
64
+ oauth_signature="8XiRWCIiDK%2Fwr%2FTLttRDPnsFaiE%3D", oauth_signature_method="HMAC-SHA1",
65
+ oauth_timestamp="1329922227", oauth_version="1.0"
66
+ response: !ruby/struct:VCR::Response
67
+ status: !ruby/struct:VCR::ResponseStatus
68
+ code: 401
69
+ message: Unauthorized
70
+ headers:
71
+ server:
72
+ - Apache-Coyote/1.1
73
+ www-authenticate:
74
+ - OAuth realm="https%3A%2F%2Fapi.linkedin.com", oauth_problem="consumer_key_unknown"
75
+ content-type:
76
+ - application/x-www-form-urlencoded;charset=UTF-8
77
+ content-length:
78
+ - '34'
79
+ vary:
80
+ - Accept-Encoding
81
+ date:
82
+ - Wed, 22 Feb 2012 14:50:29 GMT
83
+ body: oauth_problem=consumer_key_unknown
84
+ http_version: '1.1'
85
+ - !ruby/struct:VCR::HTTPInteraction
86
+ request: !ruby/struct:VCR::Request
87
+ method: :get
88
+ uri: https://api.linkedin.com:443/v1people-search?company-name=linkedin
89
+ body:
90
+ headers:
91
+ x-li-format:
92
+ - json
93
+ user-agent:
94
+ - OAuth gem v0.4.5
95
+ authorization:
96
+ - OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="5oBn6Ns1YZXUeh0oEmAcCjQrXFhf6c652LEGbFbYe4",
97
+ oauth_signature="yHtXFEkeWfhnrsEpDaXn2Epv9KY%3D", oauth_signature_method="HMAC-SHA1",
98
+ oauth_timestamp="1329991237", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
99
+ oauth_version="1.0"
100
+ response: !ruby/struct:VCR::Response
101
+ status: !ruby/struct:VCR::ResponseStatus
102
+ code: 404
103
+ message: Not Found
104
+ headers:
105
+ content-type:
106
+ - text/html
107
+ content-length:
108
+ - '1888'
109
+ date:
110
+ - Thu, 23 Feb 2012 10:00:38 GMT
111
+ server:
112
+ - lighttpd
113
+ 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
114
+ \ <title>404: Page Not Found</title>\n <meta http-equiv=\"content-type\" content=\"text/html;
115
+ charset=UTF-8\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/css/style.css\">\n</head>\n\n<body
116
+ class=\"errorpg\">\n\n<div id=\"header\">\n <a href=\"/home\"><img src=\"/img/logos/logo.gif\"
117
+ width=\"129\" height=\"36\" alt=\"Linkedin\"></a>\n</div>\n\n<div id=\"main\"
118
+ class=\"error404\">\n <h1>Page Not Found</h1>\n <p>The page you requested
119
+ is no longer available, or cannot be found.</p>\n <p class=\"bottom\">Please
120
+ double-check the URL (address) you used, or <a href=\"mailto:customer_service@linkedin.com\">contact
121
+ us</a> if you feel you have reached this page in error.</p>\n <p class=\"top
122
+ helper\"><strong>Click the &#8220;Back&#8221; button on your browser or <a href=\"/home\">go
123
+ to the home page</a>.</strong></p>\n \n <br>\n \n <p><strong>Are you looking
124
+ for any of these LinkedIn features?</strong></p>\n <ul>\n <li><a href=\"/search\">Find
125
+ People</a></li>\n <li><a href=\"/jobs\">Find Jobs</a></li>\n <li><a href=\"/services\">Find
126
+ Services</a></li>\n <li><a href=\"/reconnect?displayCategories=\">Reconnect
127
+ with Colleagues</a></li>\n </ul>\n \n <ul>\n <li><a href=\"/static?key=outlook_toolbar_download\">Outlook
128
+ Toolbar</a></li>\n <li><a href=\"/static?key=firefox_companion_download\">Firefox
129
+ Companion</a></li>\n <li><a href=\"/static?key=ie_toolbar_download\">Internet
130
+ Explorer Toolbar</a></li>\n <li><a href=\"/static?key=groups_info\">LinkedIn
131
+ for Groups</a></li>\n </ul>\n\n <ul>\n <li><a href=\"https://www.linkedin.com/secure/settings\">My
132
+ Account</a></li>\n <li><a href=\"/profile\">My Profile</a></li>\n <li><a
133
+ href=\"/connections\">My Connections</a></li>\n <li><a href=\"/inviteMany\">Add
134
+ Connections</a></li>\n </ul>\n <div class=\"spacer\">&nbsp;</div>\n</div>\n\n</body>\n</html>"
135
+ http_version: '1.1'
@@ -0,0 +1,122 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://api.linkedin.com:443/v1/people-search?first-name=Giliardi&last-name=Pires
6
+ body:
7
+ headers:
8
+ user-agent:
9
+ - OAuth gem v0.4.4
10
+ authorization:
11
+ - OAuth oauth_consumer_key="C2UfeHxZrij1PyppziDLbdUQti6f4TLaL-N0dyiV_us4Pj18_vsHcjKIX0i69fSn",
12
+ oauth_nonce="IVMcA0gCXgVmgwAn56FRIpQUdQmyFcoP2RRN6ZzPv4", oauth_signature="8aXd44yIB6fsVy%2BYZJNvR01yp2w%3D",
13
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1305061364", oauth_token="afb39322-be32-4b83-83a0-7e35e18d3082",
14
+ oauth_version="1.0"
15
+ x-li-format:
16
+ - json
17
+ response: !ruby/struct:VCR::Response
18
+ status: !ruby/struct:VCR::ResponseStatus
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ content-type:
23
+ - application/json;charset=UTF-8
24
+ server:
25
+ - Apache-Coyote/1.1
26
+ date:
27
+ - Tue, 10 May 2011 21:02:45 GMT
28
+ x-li-format:
29
+ - json
30
+ vary:
31
+ - x-li-format,Accept-Encoding
32
+ transfer-encoding:
33
+ - chunked
34
+ body: ! "{\n \"numResults\": 1,\n \"people\": {\n \"values\": [{\n \"id\":
35
+ \"YkdnFl04s_\",\n \"lastName\": \"Pires\",\n \"firstName\": \"Giliardi\"\n
36
+ \ }],\n \"_total\": 1\n }\n}"
37
+ http_version: '1.1'
38
+ - !ruby/struct:VCR::HTTPInteraction
39
+ request: !ruby/struct:VCR::Request
40
+ method: :post
41
+ uri: https://api.linkedin.com:443/uas/oauth/requestToken
42
+ body:
43
+ headers:
44
+ user-agent:
45
+ - OAuth gem v0.4.5
46
+ content-length:
47
+ - '0'
48
+ authorization:
49
+ - OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="oob",
50
+ oauth_consumer_key="a39e395e-bc38-4d5b-ae3b-52f840f821e9", oauth_nonce="rXssYvyrlgkdK7ZpsjurbqOPKK3vQ0FUM9pRP37NMc",
51
+ oauth_signature="b%2B3nVjLTwMGwAANmULOD8YSdjZU%3D", oauth_signature_method="HMAC-SHA1",
52
+ oauth_timestamp="1329922226", oauth_version="1.0"
53
+ response: !ruby/struct:VCR::Response
54
+ status: !ruby/struct:VCR::ResponseStatus
55
+ code: 401
56
+ message: Unauthorized
57
+ headers:
58
+ server:
59
+ - Apache-Coyote/1.1
60
+ www-authenticate:
61
+ - OAuth realm="https%3A%2F%2Fapi.linkedin.com", oauth_problem="consumer_key_unknown"
62
+ content-type:
63
+ - application/x-www-form-urlencoded;charset=UTF-8
64
+ content-length:
65
+ - '34'
66
+ vary:
67
+ - Accept-Encoding
68
+ date:
69
+ - Wed, 22 Feb 2012 14:50:28 GMT
70
+ body: oauth_problem=consumer_key_unknown
71
+ http_version: '1.1'
72
+ - !ruby/struct:VCR::HTTPInteraction
73
+ request: !ruby/struct:VCR::Request
74
+ method: :get
75
+ uri: https://api.linkedin.com:443/v1people-search?first-name=Giliardi&last-name=Pires
76
+ body:
77
+ headers:
78
+ x-li-format:
79
+ - json
80
+ user-agent:
81
+ - OAuth gem v0.4.5
82
+ authorization:
83
+ - OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="d90SJkw5a0WbvJqggKUYk02aUMkcPjWLBrfT5lU",
84
+ oauth_signature="h9ZKohoAEDStOnt2vQQYoEXdIYk%3D", oauth_signature_method="HMAC-SHA1",
85
+ oauth_timestamp="1329991237", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
86
+ oauth_version="1.0"
87
+ response: !ruby/struct:VCR::Response
88
+ status: !ruby/struct:VCR::ResponseStatus
89
+ code: 404
90
+ message: Not Found
91
+ headers:
92
+ content-type:
93
+ - text/html
94
+ content-length:
95
+ - '1888'
96
+ date:
97
+ - Thu, 23 Feb 2012 10:00:38 GMT
98
+ server:
99
+ - lighttpd
100
+ 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
101
+ \ <title>404: Page Not Found</title>\n <meta http-equiv=\"content-type\" content=\"text/html;
102
+ charset=UTF-8\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/css/style.css\">\n</head>\n\n<body
103
+ class=\"errorpg\">\n\n<div id=\"header\">\n <a href=\"/home\"><img src=\"/img/logos/logo.gif\"
104
+ width=\"129\" height=\"36\" alt=\"Linkedin\"></a>\n</div>\n\n<div id=\"main\"
105
+ class=\"error404\">\n <h1>Page Not Found</h1>\n <p>The page you requested
106
+ is no longer available, or cannot be found.</p>\n <p class=\"bottom\">Please
107
+ double-check the URL (address) you used, or <a href=\"mailto:customer_service@linkedin.com\">contact
108
+ us</a> if you feel you have reached this page in error.</p>\n <p class=\"top
109
+ helper\"><strong>Click the &#8220;Back&#8221; button on your browser or <a href=\"/home\">go
110
+ to the home page</a>.</strong></p>\n \n <br>\n \n <p><strong>Are you looking
111
+ for any of these LinkedIn features?</strong></p>\n <ul>\n <li><a href=\"/search\">Find
112
+ People</a></li>\n <li><a href=\"/jobs\">Find Jobs</a></li>\n <li><a href=\"/services\">Find
113
+ Services</a></li>\n <li><a href=\"/reconnect?displayCategories=\">Reconnect
114
+ with Colleagues</a></li>\n </ul>\n \n <ul>\n <li><a href=\"/static?key=outlook_toolbar_download\">Outlook
115
+ Toolbar</a></li>\n <li><a href=\"/static?key=firefox_companion_download\">Firefox
116
+ Companion</a></li>\n <li><a href=\"/static?key=ie_toolbar_download\">Internet
117
+ Explorer Toolbar</a></li>\n <li><a href=\"/static?key=groups_info\">LinkedIn
118
+ for Groups</a></li>\n </ul>\n\n <ul>\n <li><a href=\"https://www.linkedin.com/secure/settings\">My
119
+ Account</a></li>\n <li><a href=\"/profile\">My Profile</a></li>\n <li><a
120
+ href=\"/connections\">My Connections</a></li>\n <li><a href=\"/inviteMany\">Add
121
+ Connections</a></li>\n </ul>\n <div class=\"spacer\">&nbsp;</div>\n</div>\n\n</body>\n</html>"
122
+ http_version: '1.1'
@@ -0,0 +1,72 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://api.linkedin.com:443/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
+ headers:
8
+ user-agent:
9
+ - OAuth gem v0.4.4
10
+ authorization:
11
+ - OAuth oauth_consumer_key="C2UfeHxZrij1PyppziDLbdUQti6f4TLaL-N0dyiV_us4Pj18_vsHcjKIX0i69fSn",
12
+ oauth_nonce="p445iIZd1oQn2e1JL6M2ZbGEUi2nTMqacOQ4S1xeDY", oauth_signature="639UhE9asgiYLgUzBYUFrdIF%2BS8%3D",
13
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1305061366", oauth_token="afb39322-be32-4b83-83a0-7e35e18d3082",
14
+ oauth_version="1.0"
15
+ x-li-format:
16
+ - json
17
+ response: !ruby/struct:VCR::Response
18
+ status: !ruby/struct:VCR::ResponseStatus
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ content-type:
23
+ - application/json;charset=UTF-8
24
+ server:
25
+ - Apache-Coyote/1.1
26
+ date:
27
+ - Tue, 10 May 2011 21:02:47 GMT
28
+ x-li-format:
29
+ - json
30
+ vary:
31
+ - x-li-format,Accept-Encoding
32
+ transfer-encoding:
33
+ - chunked
34
+ body: ! "{\n \"numResults\": 1,\n \"people\": {\n \"values\": [{\n \"id\":
35
+ \"YkdnFl04s_\",\n \"publicProfileUrl\": \"http://www.linkedin.com/in/gibanet\",\n
36
+ \ \"lastName\": \"Pires\",\n \"pictureUrl\": \"http://media.linkedin.com/mpr/mprx/0_Oz05kn9xkWziAEOUKtOVkqzjXd8Clf7UyqIVkqchR2NtmwZRt1fWoN_aobhg-HmB09jUwPLKrAhU\",\n
37
+ \ \"firstName\": \"Giliardi\"\n }],\n \"_total\": 1\n }\n}"
38
+ http_version: '1.1'
39
+ - !ruby/struct:VCR::HTTPInteraction
40
+ request: !ruby/struct:VCR::Request
41
+ method: :post
42
+ uri: https://api.linkedin.com:443/uas/oauth/requestToken
43
+ body:
44
+ headers:
45
+ user-agent:
46
+ - OAuth gem v0.4.5
47
+ content-length:
48
+ - '0'
49
+ authorization:
50
+ - OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="oob",
51
+ oauth_consumer_key="a39e395e-bc38-4d5b-ae3b-52f840f821e9", oauth_nonce="bcBcCa4GrHRyxuMfyrnwxQahY2zkrQVUhRhpQDhfA",
52
+ oauth_signature="3d%2FocgY%2FpjVNVXL2Ud9aIAWyBCQ%3D", oauth_signature_method="HMAC-SHA1",
53
+ oauth_timestamp="1329922227", oauth_version="1.0"
54
+ response: !ruby/struct:VCR::Response
55
+ status: !ruby/struct:VCR::ResponseStatus
56
+ code: 401
57
+ message: Unauthorized
58
+ headers:
59
+ server:
60
+ - Apache-Coyote/1.1
61
+ www-authenticate:
62
+ - OAuth realm="https%3A%2F%2Fapi.linkedin.com", oauth_problem="consumer_key_unknown"
63
+ content-type:
64
+ - application/x-www-form-urlencoded;charset=UTF-8
65
+ content-length:
66
+ - '34'
67
+ vary:
68
+ - Accept-Encoding
69
+ date:
70
+ - Wed, 22 Feb 2012 14:50:29 GMT
71
+ body: oauth_problem=consumer_key_unknown
72
+ http_version: '1.1'
@@ -0,0 +1,136 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://api.linkedin.com:443/v1/people-search?keywords=github
6
+ body:
7
+ headers:
8
+ user-agent:
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:
16
+ - json
17
+ response: !ruby/struct:VCR::Response
18
+ status: !ruby/struct:VCR::ResponseStatus
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ content-type:
23
+ - application/json;charset=UTF-8
24
+ server:
25
+ - Apache-Coyote/1.1
26
+ date:
27
+ - Tue, 10 May 2011 21:02:40 GMT
28
+ x-li-format:
29
+ - json
30
+ vary:
31
+ - x-li-format,Accept-Encoding
32
+ transfer-encoding:
33
+ - chunked
34
+ body: ! "{\n \"numResults\": 905,\n \"people\": {\n \"values\": [\n {\n
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:
73
+ - Apache-Coyote/1.1
74
+ www-authenticate:
75
+ - OAuth realm="https%3A%2F%2Fapi.linkedin.com", oauth_problem="consumer_key_unknown"
76
+ content-type:
77
+ - application/x-www-form-urlencoded;charset=UTF-8
78
+ content-length:
79
+ - '34'
80
+ vary:
81
+ - Accept-Encoding
82
+ date:
83
+ - Wed, 22 Feb 2012 14:50:24 GMT
84
+ body: oauth_problem=consumer_key_unknown
85
+ http_version: '1.1'
86
+ - !ruby/struct:VCR::HTTPInteraction
87
+ request: !ruby/struct:VCR::Request
88
+ method: :get
89
+ uri: https://api.linkedin.com:443/v1people-search?keywords=github
90
+ body:
91
+ headers:
92
+ x-li-format:
93
+ - json
94
+ user-agent:
95
+ - OAuth gem v0.4.5
96
+ authorization:
97
+ - OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="QLUmDted5J4dGxWyz5TxD2aLeQTSdUYgVF5LqzcaI",
98
+ oauth_signature="FQWcB4ad5NTQHoa%2FGiCHrYOnD2M%3D", oauth_signature_method="HMAC-SHA1",
99
+ oauth_timestamp="1329991235", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
100
+ oauth_version="1.0"
101
+ response: !ruby/struct:VCR::Response
102
+ status: !ruby/struct:VCR::ResponseStatus
103
+ code: 404
104
+ message: Not Found
105
+ headers:
106
+ content-type:
107
+ - text/html
108
+ content-length:
109
+ - '1888'
110
+ date:
111
+ - Thu, 23 Feb 2012 10:00:36 GMT
112
+ server:
113
+ - lighttpd
114
+ 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
115
+ \ <title>404: Page Not Found</title>\n <meta http-equiv=\"content-type\" content=\"text/html;
116
+ charset=UTF-8\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/css/style.css\">\n</head>\n\n<body
117
+ class=\"errorpg\">\n\n<div id=\"header\">\n <a href=\"/home\"><img src=\"/img/logos/logo.gif\"
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 &#8220;Back&#8221; 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\">&nbsp;</div>\n</div>\n\n</body>\n</html>"
136
+ http_version: '1.1'