linkedin-api2 1.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.autotest +14 -0
  3. data/.gemtest +0 -0
  4. data/.gitignore +42 -0
  5. data/.rspec +1 -0
  6. data/.travis.yml +6 -0
  7. data/.yardopts +7 -0
  8. data/CHANGELOG.md +99 -0
  9. data/EXAMPLES.md +202 -0
  10. data/Gemfile +11 -0
  11. data/LICENSE +22 -0
  12. data/README.md +43 -0
  13. data/Rakefile +15 -0
  14. data/lib/linked_in/api.rb +38 -0
  15. data/lib/linked_in/api/communications.rb +44 -0
  16. data/lib/linked_in/api/companies.rb +129 -0
  17. data/lib/linked_in/api/groups.rb +115 -0
  18. data/lib/linked_in/api/jobs.rb +64 -0
  19. data/lib/linked_in/api/people.rb +73 -0
  20. data/lib/linked_in/api/query_helpers.rb +86 -0
  21. data/lib/linked_in/api/share_and_social_stream.rb +137 -0
  22. data/lib/linked_in/client.rb +51 -0
  23. data/lib/linked_in/errors.rb +29 -0
  24. data/lib/linked_in/helpers.rb +6 -0
  25. data/lib/linked_in/helpers/authorization.rb +69 -0
  26. data/lib/linked_in/helpers/request.rb +85 -0
  27. data/lib/linked_in/mash.rb +95 -0
  28. data/lib/linked_in/search.rb +71 -0
  29. data/lib/linked_in/version.rb +11 -0
  30. data/lib/linkedin.rb +35 -0
  31. data/linkedin-api2.gemspec +27 -0
  32. data/spec/cases/api_spec.rb +308 -0
  33. data/spec/cases/linkedin_spec.rb +37 -0
  34. data/spec/cases/mash_spec.rb +113 -0
  35. data/spec/cases/oauth_spec.rb +178 -0
  36. data/spec/cases/search_spec.rb +234 -0
  37. data/spec/fixtures/cassette_library/LinkedIn_Api/Company_API.yml +81 -0
  38. data/spec/fixtures/cassette_library/LinkedIn_Api/Company_API/should_load_correct_company_data.yml +81 -0
  39. data/spec/fixtures/cassette_library/LinkedIn_Client/_authorize_from_request/should_return_a_valid_access_token.yml +37 -0
  40. data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token/with_a_callback_url/should_return_a_valid_access_token.yml +37 -0
  41. data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token/with_default_options/should_return_a_valid_request_token.yml +37 -0
  42. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_company_name_option/should_perform_a_search.yml +92 -0
  43. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_email_address/should_perform_a_people_search.yml +57 -0
  44. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options/should_perform_a_search.yml +100 -0
  45. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options_with_fields/should_perform_a_search.yml +114 -0
  46. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_keywords_string_parameter/should_perform_a_search.yml +52 -0
  47. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_multiple_email_address/should_perform_a_multi-email_search.yml +59 -0
  48. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option/should_perform_a_search.yml +52 -0
  49. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option_with_pagination/should_perform_a_search.yml +43 -0
  50. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/email_search_returns_unauthorized/should_raise_an_unauthorized_error.yml +59 -0
  51. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_options_with_fields/should_perform_a_search.yml +43 -0
  52. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_string_parameter/should_perform_a_company_search.yml +80 -0
  53. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option/should_perform_a_company_search.yml +80 -0
  54. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_facets_to_return/should_return_a_facet.yml +80 -0
  55. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_pagination/should_perform_a_search.yml +74 -0
  56. data/spec/helper.rb +34 -0
  57. metadata +268 -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
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people-search?keywords=github
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="KJPWM7qluIAetEW5kk8NSQuB3ssr1S2v6HBpofhFY",
14
+ oauth_signature="LEh2O3mlLU6GqhsuU4admW%2B1hDw%3D", oauth_signature_method="HMAC-SHA1",
15
+ oauth_timestamp="1365631655", 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
+ - L4BQ08FWG8
26
+ X-Li-Format:
27
+ - json
28
+ Date:
29
+ - Wed, 10 Apr 2013 22:07:35 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 \"numResults\": 6,\n \"people\": {\n \"_total\": 6,\n \"values\":
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},\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}"
50
+ http_version: '1.1'
51
+ recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
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
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people-search?keywords=github
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="DlBgAEJHkDYAnMMZwzFObsUNcCmRbzFldB4dV1yeE",
14
+ oauth_signature="RLiPr%2FC1bq9Dv29W3mjezy1of54%3D", oauth_signature_method="HMAC-SHA1",
15
+ oauth_timestamp="1365631655", 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
+ - 5BE8O0G2CK
26
+ X-Li-Format:
27
+ - json
28
+ Date:
29
+ - Wed, 10 Apr 2013 22:07:35 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 \"numResults\": 6,\n \"people\": {\n \"_total\": 6,\n \"values\":
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 },\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}"
50
+ http_version: '1.1'
51
+ recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
52
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people-search?count=5&keywords=github&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="PfrLyLbcfxXAJshwSsQ4YDPBk1OncuNV0RjgB4fbVEs",
14
+ oauth_signature="16fUd%2BHUkWJULyxMCEbISV0Ltks%3D", oauth_signature_method="HMAC-SHA1",
15
+ oauth_timestamp="1365631656", 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
+ - JI3L4KN8K1
26
+ X-Li-Format:
27
+ - json
28
+ Date:
29
+ - Wed, 10 Apr 2013 22:07:36 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 \"numResults\": 6,\n \"people\": {\n \"_count\": 1,\n \"_start\":5,\n \"_total\": 6,\n \"values\": [{\n \"firstName\": \"Satish\",\n\"id\": \"V1FPuGot-I\",\n \"lastName\": \"Talim\"\n }]\n }\n}"
41
+ http_version: '1.1'
42
+ recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
43
+ 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=aa@bb.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="Ny9c0n0y0Eg7cnVjVbUlDPeQap8qjzhdPNY3sAi5K8",
20
+ oauth_signature="vd%2Fd5TC906HXqp50%2BRUT3ZeHC2E%3D", oauth_signature_method="HMAC-SHA1",
21
+ oauth_timestamp="1389716461", oauth_token="key", oauth_version="1.0"
22
+ response:
23
+ status:
24
+ code: 401
25
+ message: Unauthorized
26
+ headers:
27
+ Server:
28
+ - Apache-Coyote/1.1
29
+ X-Li-Request-Id:
30
+ - X1OTF3POH3
31
+ Date:
32
+ - Tue, 14 Jan 2014 16:20:58 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
+ - iD/VocFDSROQ7fHxASsAAA==
49
+ Set-Cookie:
50
+ - lidc="b=LB37:g=42:u=1:i=1389716458:t=1389717058:s=1572779068"; Expires=Tue,
51
+ 14 Jan 2014 16:30:58 GMT; domain=.linkedin.com; Path=/
52
+ body:
53
+ encoding: UTF-8
54
+ string: ! "{\"errorCode\": 0,\"message\": \"Access to member by email address denied\",
55
+ \"requestId\": \"BRSUSQTPPW\",
56
+ \"status\": 403,
57
+ \"timestamp\": 1389727130475}"
58
+ http_version:
59
+ recorded_at: Tue, 14 Jan 2014 16:21:01 GMT
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/company-search:(companies:(id,name,industries,description,specialties),num-results)?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="XIAUlVH3VfeqacvVEQzCvdLSyy9swruF3mouF9mtc",
14
+ oauth_signature="ggZObnJ1w5zMIBixfluGoUYZVSg%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
+ - 68RH2HSO61
26
+ X-Li-Format:
27
+ - json
28
+ Date:
29
+ - Wed, 10 Apr 2013 22:07:35 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: ! "{ \"companies\": { \"_count\": 10, \"_start\": 0, \"_total\": 8450, \"values\": [ { \"description\": \"Apple designs Macs, the best personal computers in the world, along with OS X, iLife, iWork and professional software. Apple leads the digital music revolution with its iPods and iTunes online store. Apple has reinvented the mobile phone with its revolutionary iPhone and App Store, and is defining the future of mobile media and computing devices with iPad.\", \"id\": 162479, \"industries\": { \"_total\": 1, \"values\": [{ \"code\": \"24\", \"name\": \"Consumer Electronics\" }] }, \"name\": \"Apple\", \"specialties\":{ \"_total\": 4, \"values\": [ \"Innovative product development\", \"world class operations\", \"Retail\", \"Telephone Support\" ] } }, { \"description\": \"Experience the Difference. \\r\\nFor over 40 years, Apple Vacations has provided the most value in vacations to millions of people. Throughout the years, we\\u2019ve provided what you want in a vacation \\u2013 great service, convenience, and value. We understand just how important your vacation is. We know because, like you, vacations are important to us too. \\r\\n \\r\\nApple Vacations is a company of energetic, hardworking employees with the same entrepreneurial attitudes as our founders. Headquartered just outside Philadelphia with regional offices in Chicago and Boston, the company is completely focused on providing quality vacations for our customers. Employees are empowered to make decisions that impact the quality of their customers\\u2019 vacations on a daily basis. Since our humble beginnings, Apple Vacations has created the ultimate \\u201cbeginning-to-end\\u201d vacation experience for customers. Apple Vacations employees will greet you at your departure airport in more than 20 cities; and will meet your flight in our charter destinations. Apple Vacations\\u2019 sister companies, flies customers to their destinations from more than 20 U.S. cities; and Amstar, is the destination management company in-resort with uniformed representatives, who will greet you upon arrival and assist you while you are at your resort. Unlike any other travel company, Apple Vacations truly provides the ultimate in a quality vacation experience.\", \"id\": 19271, \"industries\": { \"_total\": 1, \"values\": [{ \"code\": \"30\", \"name\": \"Leisure & Travel\" }] }, \"name\": \"Apple Vacations\", \"specialties\": { \"_total\": 2, \"values\": [ \"Leisure travel\", \"all inclusive vacation packages\" ] } }, { \"description\": \"Big Apple International Realty has been listing, selling and managing Residential Real Estate in four counties of the Greater Orlando and Central Florida areas for over five years. Because our Property Management Division had grown substantially, and to fill the growing need for property management services in Central Florida, we founded Orlando Rental Store in 2008. In addition to providing \\\"Lease Only\\\" services at competitive prices, we currently manage close to 50 properties in the Greater Orlando Area.\", \"id\": 778626, \"industries\":{ \"_total\": 1, \"values\": [{ \"code\": \"44\", \"name\": \"Real Estate\" }] }, \"name\": \"Big Apple Holdings, Inc. dba Big Apple International Realty\" }, { \"description\": \"Apple & Associates is an executive search firm that specializes in the Pharmaceutical, Medical Device and Consumer Product Industries. We provide extensive coverage of these worldwide markets and have forged a solid reputation in the industry as a competent, aggressive, and resource-rich recruiting firm. We are a nation-wide company with offices through-out the United States. \\r\\n\\r\\nApple & Associates belongs to Intercity Personnel Associates (IPA) and the Top Echelon Network. Through these worldwide recruiting networks, we share confidentially coded information about available positions and receive qualified candidates within a short period of time. With one phone call you not only have rapid access to our candidates, but also to qualified candidates from over 1,000 of the nation\\u2019s other top recruiting firms. Because our executive recruiters specialize in different industry segments, we can give you the service you deserve in a fast, focused, and efficient manner and provide you with quality industry specific candidates. \\r\\n\\r\\nWe realize the importance of hiring professionals who understand and are able to assimilate with your company\\u2019s business model, culture, process, equipment, and materials. Our team has studied the hiring decisions that make the firms in the Pharmaceutical and Medical Device industries so successful. Our candidates will meet the standard your company demands, with the technical and industry background to match.\", \"id\": 112136, \"industries\": { \"_total\": 1, \"values\": [{ \"code\": \"104\", \"name\": \"Staffing & Recruiting\" }] }, \"name\": \"Apple & Associates\", \"specialties\":{ \"_total\": 20, \"values\": [ \"Medical Device\", \"Pharmaceutical\", \"Power\", \"Energy\", \"Consumer Products\", \"Supply Chain\", \"Purchasing\", \"Engineering\", \"Marketing\", \"Sales\", \"Human Resources\", \"Science\", \"Finance\", \"Manufacturing\", \"Operations\", \"R&D\", \"Six Sigma\", \"IT\", \"chemist\", \"Executive Management\" ] } }, { \"description\": \"Headquartered in Singapore and a presence in 9 countries globally, Stone Apple is a Specialized Consulting firm focused mainly on Business Intelligence & Analytics, Enterprise Resource Planning, Knowledge Management & Application Integration with a strong product portfolio, analytical applications, Proprietary Industry Solutions and strong services capability \\r\\n\\r\\nStone Apple has a strong offshore presence in SE Asia with development centers in Vietnam and Malaysia. The Company has a strong presence and networks in Asia Pacific, Europe and United States to support their rapidly growing MNC enterprise customer base \\r\\n\\r\\nStone Apple provides customized solutions to meet the changing needs of enterprises globally. From leading industry methodologies to in-house proven models, Stone Apple collaborates with their customers to deliver tangible business results that impact their bottom line.\", \"id\": 772044, \"industries\": { \"_total\": 1, \"values\": [{ \"code\": \"96\", \"name\": \"Information Technology & Services\" }] }, \"name\": \"Stone Apple Solutions\" }, { \"description\": \"iSquare S.A. is the Apple Authorised Distributor of Greece and Cyprus since September 2010. iSquare is distributing Apple products but also plans, implements and provides intergrated solutions, based on the innovative Apple products and technology. iSquare's strategic goal is to increase the use of Apple products among the Greek consumers, but also to provide users the ultimate Apple experience.\\r\\n\\r\\niSquare creates and provides a complete ecosystem for Apple products and services, aiming to bring Greek customers closer to Apple's philosophy. In order to do that, iSquare:\\r\\n\\r\\n- Creates a wide network of POS (Points Of Sales) that spreads throughout Greece and Cyprus\\r\\n\\r\\n- Develops its relations with major retail chains in order to promote Apple products to a wide range of customers\\r\\n\\r\\n- Creates a unique network of stores exclusively for Apple products, always in line with the high standards of \\r\\n Apple Premium Reseller program\\r\\n\\r\\n- Invests on continuous and in depth training of the sales network in order to provide the best before and after sale \\r\\n support, according to Apple's and iSquare's high standards\\r\\n\\r\\n- Focuses on the crucial sector of Education\\r\\n\\r\\n- Constantly works to improve the support of Apple products and solutions\\r\\n\\r\\n- Completes Apple's ecosystem as the distributor of software and peripherals from well known brands.\\r\\n\\r\\n\\r\\nWith a vision that derives from Apple's innovation, iSquare aspires to bring the Apple products at the stature they deserve within the Greek and Cypriot market.\", \"id\": 2135525, \"industries\":{ \"_total\": 1, \"values\": [{ \"code\": \"24\", \"name\": \"Consumer Electronics\" }] }, \"name\": \"iSquare - Apple Authorized Distributor in Greece & Cyprus\" }, { \"description\": \"Filex (Moj Apple DuÄ\u0087an i Servis) je autorizirani Apple partner za prodaju, servis i podrÅ¡ku.\\r\\n\\r\\nFilex je osnovan 1992 godine te od tada u kontinuitetu razvijamo i unapreÄ\u0091ujemo prepoznatljivost Apple tehnologija prezentirajuÄ\u0087i upotrebnu vrijednost Apple rjeÅ¡enja, na domaÄ\u0087em i regionalnom tržiÅ¡tu.\\r\\n\\r\\nNaÅ¡ fokus nije iskljuÄ\u008Divo na tehnologijama veÄ\u0087 kako te tehnologije podrediti potrebama korisnika. Sukladno tome, Filex nije samo joÅ¡ jedna u nizu trgovina u koju Ä\u0087ete doÄ\u0087i \\\"pokupiti\\\" svoj Apple ureÄ\u0091aj, veÄ\u0087 mjesto na kojem Ä\u0087ete postavljati pitanja, razgovarati i diskutirati te na kraju izaÄ\u0087i sa rjeÅ¡enjem - ma kako god ono na kraju izgledalo!\\r\\n\\r\\nKontaktirajte nas preko naÅ¡eg Internet Store-a (www.filex.hr), ili nam piÅ¡ite na prodaja@filx.hr ili servis@filex.hr.\\r\\nI svakako nam se pridružite na Facebook-u na http://www.facebook.com/pages/Filex-Moj-Apple-DuÄ\u0087an-i-Servis/131194173598671\\r\\n\\r\\nVaÅ¡e zadovoljstvo naÅ¡a je misija!\", \"id\": 2303504, \"industries\":{ \"_total\": 1, \"values\": [{ \"code\": \"3\", \"name\": \"Computer Hardware\" }] }, \"name\": \"Filex Apple Store & Support\", \"specialties\":{ \"_total\": 4, \"values\": [ \"Apple Store\", \"Apple PodrÅ¡ka i Servis\", \"Apple RjeÅ¡enja\", \"Apple B2B\" ] } }, { \"description\": \"Als Apple een nieuwssite zou maken in Vlaanderen, dan was het AppleVlaanderen. AppleVlaanderen is gemaakt met dezelfde passie en aandacht voor detail als de producten van Apple zelf.\\r\\n\\r\\nWe behandelen de nieuwsfeiten over Apple met zorg en proberen u zo goed mogelijk in te lichten als Apple-Fan in Vlaanderen. Dagelijks circuleren er duizenden geruchten over Apple in het algemeen, onze taak is deze te bundelen en u mee te delen.\\r\\n\\r\\nDit doen we met veel liefde voor de verschillende producten en voor Apple in het algemeen. Onze medewerkers werken allemaal op vrijwillige basis en hebben voldoende kennis over de producten van Apple.\", \"id\": 2419290, \"industries\": { \"_total\": 1, \"values\": [{ \"code\": \"81\", \"name\": \"Newspapers\" }] }, \"name\": \"Apple Nieuws Vlaanderen\", \"specialties\": { \"_total\": 4, \"values\": [ \"apple\", \"iPhone\", \"iPad\", \"mac\" ] } }, { \"description\": \"OGGO est une société de conseils et solutions Apple Macintosh basée à Genève, nous proposons notre savoir faire essentiellement aux PME et particuliers.\\r\\n\\r\\nNos services en un coup d'oeil :\\r\\n\\r\\n// Réparations\\r\\n// Optimisations matérielles\\r\\n// Contrats de maintenance\\r\\n// Dépannage sur site\\r\\n// Interventions urgentes\\r\\n// Maintenance\\r\\n// Aide à l'achat\\r\\n// Formations\", \"id\": 2260437, \"industries\": { \"_total\": 1, \"values\": [{ \"code\": \"96\", \"name\": \"Information Technology & Services\" }] }, \"name\": \"OGGO - Services Apple Macintosh\", \"specialties\": { \"_total\": 7, \"values\": [ \"Consulting & conseils Apple Macintosh\", \"Support Apple Macintosh\", \"Maintenance Mac OS X Server\", \"Dépannage Mac OS X\", \"Installation Mac OS X Server\", \"Interventions Apple Macintosh\", \"Formation Apple Macintosh\" ] } }, { \"description\": \"Apple-Crumble provides sound advice, sales and support for all apple mac products and related peripherals including external hard drives, printers, scanners and both apple and 3rd party software. Apple-Crumble are also experts in troubleshooting, repair and maintenance. Our staff are apple trained and certified with over 15 years experience.\\r\\n\\r\\nAll work is guaranteed and all enquiries are welcome.\\r\\n\\r\\nWe are obviously very \\u2018pro\\u2019 apple and firmly believe that once you go mac you never go back!\\r\\n\\r\\nFor your convenience Apple-Crumble have our own workshop and offices with free parking in Penzance, Cornwall so that you have the extra peace of mind knowing that your equipment is being serviced in a clean and safe environment. You may also view, demo and purchase new hardware or add-ons, as well as discussing tailor-made options for you and/or your business.\\r\\n\\r\\nApple-Crumble\\u2019s service extends to on-site visits for emergency or contract call-outs, as well as delivery and installation of new products and systems. We cover Penzance, Falmouth, Helston and the Lizard, St Ives, Hayle, Truro, Camborne, Redruth, and all surrounding areas including north Cornwall and Devon\\r\\n\\r\\nIn most cases it is safer and more cost effective to bring your hardware to us as we are geared up for any static or time delay issues, but it is very rare that we cannot provide a solution, wherever you may be!\", \"id\": 1049054, \"industries\": { \"_total\": 1, \"values\": [{ \"code\": \"3\", \"name\": \"Computer Hardware\" }] }, \"name\": \"Apple Crumble\" } ] }, \"numResults\": 8450}"
41
+ http_version: '1.1'
42
+ recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
43
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,80 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/company-search?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="xtc6RIIOpDj7AANJ9VyIXibv4YhcM3gxMUg6OewBSo",
14
+ oauth_signature="8ShrnvC9fxh1tU3YNEjF4l%2Fhrho%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
+ - 5LR8OTP90S
26
+ X-Li-Format:
27
+ - json
28
+ Date:
29
+ - Wed, 10 Apr 2013 22:07:32 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\":{\n
55
+ \"_total\": 10,\n \"values\": [\n {\n \"code\":
56
+ \"us:0\",\n \"count\": 2511,\n \"name\": \"United States\",\n
57
+ \"selected\": false\n },\n {\n \"code\":
58
+ \"gb:0\",\n \"count\": 702,\n \"name\": \"United Kingdom\",\n
59
+ \"selected\": false\n },\n {\n \"code\":
60
+ \"us:84\",\n \"count\": 322,\n \"name\": \"San Francisco
61
+ Bay Area\",\n \"selected\": false\n },\n {\n
62
+ \"code\": \"us:70\",\n \"count\": 285,\n \"name\":
63
+ \"Greater New York City Area\",\n \"selected\": false\n },\n
64
+ {\n \"code\": \"nl:0\",\n \"count\": 284,\n
65
+ \"name\": \"Netherlands\",\n \"selected\": false\n
66
+ },\n {\n \"code\": \"ca:0\",\n \"count\":
67
+ 266,\n \"name\": \"Canada\",\n \"selected\": false\n
68
+ },\n {\n \"code\": \"au:0\",\n \"count\":
69
+ 195,\n \"name\": \"Australia\",\n \"selected\": false\n
70
+ },\n {\n \"code\": \"in:0\",\n \"count\":
71
+ 186,\n \"name\": \"India\",\n \"selected\": false\n
72
+ },\n {\n \"code\": \"it:0\",\n \"count\":
73
+ 177,\n \"name\": \"Italy\",\n \"selected\": false\n
74
+ },\n {\n \"code\": \"us:49\",\n \"count\":
75
+ 173,\n \"name\": \"Greater Los Angeles Area\",\n \"selected\":
76
+ false\n }\n ]\n },\n \"code\": \"location\",\n \"name\":
77
+ \"Location\"\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