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
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe LinkedIn::FaradayMiddleware::LinkedinErrorResponse, vcr: { cassette_name: 'invalid' } do
|
4
|
+
describe '#on_error' do
|
5
|
+
it 'raises an error with the status and body reported by Rack included' do
|
6
|
+
begin
|
7
|
+
LinkedIn::Client.new.profile
|
8
|
+
rescue LinkedIn::Error => error
|
9
|
+
error.status.should eq 401
|
10
|
+
error.body.should eq({
|
11
|
+
'errorCode' => 0,
|
12
|
+
'message' => 'Empty oauth2_access_token',
|
13
|
+
'requestId' => 'TV9SBPHRO8',
|
14
|
+
'status' => 401,
|
15
|
+
'timestamp' => 1379777767455
|
16
|
+
})
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'uses the message returned by LinkedIn' do
|
21
|
+
begin
|
22
|
+
LinkedIn::Client.new.profile
|
23
|
+
rescue LinkedIn::Error => err
|
24
|
+
err.message.should eq 'Empty oauth2_access_token'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'includes the Faraday request/response object for further introspection by the consumer' do
|
29
|
+
begin
|
30
|
+
LinkedIn::Client.new.profile
|
31
|
+
rescue LinkedIn::Error => err
|
32
|
+
err.request.headers['User-Agent'].should eq 'Faraday v0.8.8'
|
33
|
+
err.response.headers['Server'].should eq 'Apache-Coyote/1.1'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'includes the LinkedIn error code' do
|
38
|
+
pending 'These appear to be broken, so fuck \'em. http://developer.linkedin.com/forum/error-codes-are-not-set'
|
39
|
+
begin
|
40
|
+
LinkedIn::Client.new.profile
|
41
|
+
rescue LinkedIn::Error => err
|
42
|
+
pending 'we need to discuss camelCase vs snake_case. LinkedIn returns "errorCode"'
|
43
|
+
err.error_code.should eq
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.linkedin.com/uas/oauth/accessToken
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- OAuth gem v0.4.4
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_consumer_key="eAI15DqRUTTd7OuQJBG3Mo0aw2Ekx5yoLX3x3NaLnbTnZbaU46OEii7uNTKijII4",
|
14
|
+
oauth_nonce="ztYyddIoKJ8flDjBJyveOSqm96CLaEM4QpOC0CSW0E", oauth_signature="NSp3ZDtycelP7wsDM7dsuDTZGys%3D",
|
15
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1297095033", oauth_token="2f5b42dd-1e0e-4f8f-a03c-1e510bde5935",
|
16
|
+
oauth_verifier="25038", oauth_version="1.0"
|
17
|
+
Content-Length:
|
18
|
+
- '0'
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 200
|
22
|
+
message: OK
|
23
|
+
headers:
|
24
|
+
Content-Type:
|
25
|
+
- text/plain
|
26
|
+
Server:
|
27
|
+
- Apache-Coyote/1.1
|
28
|
+
Date:
|
29
|
+
- Mon, 07 Feb 2011 16:10:34 GMT
|
30
|
+
Content-Length:
|
31
|
+
- '156'
|
32
|
+
body:
|
33
|
+
encoding: UTF-8
|
34
|
+
string: oauth_token=28774cd4-fbe1-4e6e-a05e-1243f6471933&oauth_token_secret=2fafe259-976e-41ad-a6f5-d26bbba42923&oauth_expires_in=0&oauth_authorization_expires_in=0
|
35
|
+
http_version: '1.1'
|
36
|
+
recorded_at: Wed, 10 Apr 2013 22:06:51 GMT
|
37
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,232 @@
|
|
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: ! "{\n \"companies\": {\n \"_count\": 10,\n \"_start\": 0,\n
|
41
|
+
\ \"_total\": 8450,\n \"values\": [\n {\n \"description\":
|
42
|
+
\"Apple designs Macs, the best personal computers in the world, along with
|
43
|
+
OS X, iLife, iWork and professional software. Apple leads the digital music
|
44
|
+
revolution with its iPods and iTunes online store. Apple has reinvented the
|
45
|
+
mobile phone with its revolutionary iPhone and App Store, and is defining
|
46
|
+
the future of mobile media and computing devices with iPad.\",\n \"id\":
|
47
|
+
162479,\n \"industries\": {\n \"_total\": 1,\n \"values\":
|
48
|
+
[{\n \"code\": \"24\",\n \"name\": \"Consumer Electronics\"\n
|
49
|
+
\ }]\n },\n \"name\": \"Apple\",\n \"specialties\":
|
50
|
+
{\n \"_total\": 4,\n \"values\": [\n \"Innovative
|
51
|
+
product development\",\n \"world class operations\",\n \"Retail\",\n
|
52
|
+
\ \"Telephone Support\"\n ]\n }\n },\n {\n
|
53
|
+
\ \"description\": \"Experience the Difference. \\r\\nFor over
|
54
|
+
40 years, Apple Vacations has provided the most value in vacations to millions
|
55
|
+
of people. Throughout the years, we\\u2019ve provided what you want in a vacation
|
56
|
+
\\u2013 great service, convenience, and value. We understand just how important
|
57
|
+
your vacation is. We know because, like you, vacations are important to us
|
58
|
+
too. \\r\\n \\r\\nApple Vacations is a company of energetic, hardworking employees
|
59
|
+
with the same entrepreneurial attitudes as our founders. Headquartered just
|
60
|
+
outside Philadelphia with regional offices in Chicago and Boston, the company
|
61
|
+
is completely focused on providing quality vacations for our customers. Employees
|
62
|
+
are empowered to make decisions that impact the quality of their customers\\u2019
|
63
|
+
vacations on a daily basis. Since our humble beginnings, Apple Vacations has
|
64
|
+
created the ultimate \\u201cbeginning-to-end\\u201d vacation experience for
|
65
|
+
customers. Apple Vacations employees will greet you at your departure airport
|
66
|
+
in more than 20 cities; and will meet your flight in our charter destinations.
|
67
|
+
Apple Vacations\\u2019 sister companies, flies customers to their destinations
|
68
|
+
from more than 20 U.S. cities; and Amstar, is the destination management company
|
69
|
+
in-resort with uniformed representatives, who will greet you upon arrival
|
70
|
+
and assist you while you are at your resort. Unlike any other travel company,
|
71
|
+
Apple Vacations truly provides the ultimate in a quality vacation experience.\",\n
|
72
|
+
\ \"id\": 19271,\n \"industries\": {\n \"_total\": 1,\n
|
73
|
+
\ \"values\": [{\n \"code\": \"30\",\n \"name\":
|
74
|
+
\"Leisure & Travel\"\n }]\n },\n \"name\": \"Apple
|
75
|
+
Vacations\",\n \"specialties\": {\n \"_total\": 2,\n \"values\":
|
76
|
+
[\n \"Leisure travel\",\n \"all inclusive vacation packages\"\n
|
77
|
+
\ ]\n }\n },\n {\n \"description\": \"Big
|
78
|
+
Apple International Realty has been listing, selling and managing Residential
|
79
|
+
Real Estate in four counties of the Greater Orlando and Central Florida areas
|
80
|
+
for over five years. Because our Property Management Division had grown substantially,
|
81
|
+
and to fill the growing need for property management services in Central Florida,
|
82
|
+
we founded Orlando Rental Store in 2008. In addition to providing \\\"Lease
|
83
|
+
Only\\\" services at competitive prices, we currently manage close to 50 properties
|
84
|
+
in the Greater Orlando Area.\",\n \"id\": 778626,\n \"industries\":
|
85
|
+
{\n \"_total\": 1,\n \"values\": [{\n \"code\":
|
86
|
+
\"44\",\n \"name\": \"Real Estate\"\n }]\n },\n
|
87
|
+
\ \"name\": \"Big Apple Holdings, Inc. dba Big Apple International Realty\"\n
|
88
|
+
\ },\n {\n \"description\": \"Apple & Associates is an executive
|
89
|
+
search firm that specializes in the Pharmaceutical, Medical Device and Consumer
|
90
|
+
Product Industries. We provide extensive coverage of these worldwide markets
|
91
|
+
and have forged a solid reputation in the industry as a competent, aggressive,
|
92
|
+
and resource-rich recruiting firm. We are a nation-wide company with offices
|
93
|
+
through-out the United States. \\r\\n\\r\\nApple & Associates belongs to Intercity
|
94
|
+
Personnel Associates (IPA) and the Top Echelon Network. Through these worldwide
|
95
|
+
recruiting networks, we share confidentially coded information about available
|
96
|
+
positions and receive qualified candidates within a short period of time.
|
97
|
+
\ With one phone call you not only have rapid access to our candidates, but
|
98
|
+
also to qualified candidates from over 1,000 of the nation\\u2019s other top
|
99
|
+
recruiting firms. Because our executive recruiters specialize in different
|
100
|
+
industry segments, we can give you the service you deserve in a fast, focused,
|
101
|
+
and efficient manner and provide you with quality industry specific candidates.
|
102
|
+
\ \\r\\n\\r\\nWe realize the importance of hiring professionals who understand
|
103
|
+
and are able to assimilate with your company\\u2019s business model, culture,
|
104
|
+
process, equipment, and materials. Our team has studied the hiring decisions
|
105
|
+
that make the firms in the Pharmaceutical and Medical Device industries so
|
106
|
+
successful. Our candidates will meet the standard your company demands, with
|
107
|
+
the technical and industry background to match.\",\n \"id\": 112136,\n
|
108
|
+
\ \"industries\": {\n \"_total\": 1,\n \"values\":
|
109
|
+
[{\n \"code\": \"104\",\n \"name\": \"Staffing & Recruiting\"\n
|
110
|
+
\ }]\n },\n \"name\": \"Apple & Associates\",\n \"specialties\":
|
111
|
+
{\n \"_total\": 20,\n \"values\": [\n \"Medical
|
112
|
+
Device\",\n \"Pharmaceutical\",\n \"Power\",\n \"Energy\",\n
|
113
|
+
\ \"Consumer Products\",\n \"Supply Chain\",\n \"Purchasing\",\n
|
114
|
+
\ \"Engineering\",\n \"Marketing\",\n \"Sales\",\n
|
115
|
+
\ \"Human Resources\",\n \"Science\",\n \"Finance\",\n
|
116
|
+
\ \"Manufacturing\",\n \"Operations\",\n \"R&D\",\n
|
117
|
+
\ \"Six Sigma\",\n \"IT\",\n \"chemist\",\n
|
118
|
+
\ \"Executive Management\"\n ]\n }\n },\n {\n
|
119
|
+
\ \"description\": \"Headquartered in Singapore and a presence in 9
|
120
|
+
countries globally, Stone Apple is a Specialized Consulting firm focused mainly
|
121
|
+
on Business Intelligence & Analytics, Enterprise Resource Planning, Knowledge
|
122
|
+
Management & Application Integration with a strong product portfolio, analytical
|
123
|
+
applications, Proprietary Industry Solutions and strong services capability
|
124
|
+
\\r\\n\\r\\nStone Apple has a strong offshore presence in SE Asia with development
|
125
|
+
centers in Vietnam and Malaysia. The Company has a strong presence and networks
|
126
|
+
in Asia Pacific, Europe and United States to support their rapidly growing
|
127
|
+
MNC enterprise customer base \\r\\n\\r\\nStone Apple provides customized solutions
|
128
|
+
to meet the changing needs of enterprises globally. From leading industry
|
129
|
+
methodologies to in-house proven models, Stone Apple collaborates with their
|
130
|
+
customers to deliver tangible business results that impact their bottom line.\",\n
|
131
|
+
\ \"id\": 772044,\n \"industries\": {\n \"_total\":
|
132
|
+
1,\n \"values\": [{\n \"code\": \"96\",\n \"name\":
|
133
|
+
\"Information Technology & Services\"\n }]\n },\n \"name\":
|
134
|
+
\"Stone Apple Solutions\"\n },\n {\n \"description\": \"iSquare
|
135
|
+
S.A. is the Apple Authorised Distributor of Greece and Cyprus since September
|
136
|
+
2010. iSquare is distributing Apple products but also plans, implements and
|
137
|
+
provides intergrated solutions, based on the innovative Apple products and
|
138
|
+
technology. iSquare's strategic goal is to increase the use of Apple products
|
139
|
+
among the Greek consumers, but also to provide users the ultimate Apple experience.\\r\\n\\r\\niSquare
|
140
|
+
creates and provides a complete ecosystem for Apple products and services,
|
141
|
+
aiming to bring Greek customers closer to Apple's philosophy. In order to
|
142
|
+
do that, iSquare:\\r\\n\\r\\n- Creates a wide network of POS (Points Of Sales)
|
143
|
+
that spreads throughout Greece and Cyprus\\r\\n\\r\\n- Develops its relations
|
144
|
+
with major retail chains in order to promote Apple products to a wide range
|
145
|
+
of customers\\r\\n\\r\\n- Creates a unique network of stores exclusively for
|
146
|
+
Apple products, always in line with the high standards of \\r\\n Apple Premium
|
147
|
+
Reseller program\\r\\n\\r\\n- Invests on continuous and in depth training
|
148
|
+
of the sales network in order to provide the best before and after sale \\r\\n
|
149
|
+
\ support, according to Apple's and iSquare's high standards\\r\\n\\r\\n-
|
150
|
+
Focuses on the crucial sector of Education\\r\\n\\r\\n- Constantly works to
|
151
|
+
improve the support of Apple products and solutions\\r\\n\\r\\n- Completes
|
152
|
+
Apple's ecosystem as the distributor of software and peripherals from well
|
153
|
+
known brands.\\r\\n\\r\\n\\r\\nWith a vision that derives from Apple's innovation,
|
154
|
+
iSquare aspires to bring the Apple products at the stature they deserve within
|
155
|
+
the Greek and Cypriot market.\",\n \"id\": 2135525,\n \"industries\":
|
156
|
+
{\n \"_total\": 1,\n \"values\": [{\n \"code\":
|
157
|
+
\"24\",\n \"name\": \"Consumer Electronics\"\n }]\n },\n
|
158
|
+
\ \"name\": \"iSquare - Apple Authorized Distributor in Greece & Cyprus\"\n
|
159
|
+
\ },\n {\n \"description\": \"Filex (Moj Apple DuÄ\x87an i
|
160
|
+
Servis) je autorizirani Apple partner za prodaju, servis i podršku.\\r\\n\\r\\nFilex
|
161
|
+
je osnovan 1992 godine te od tada u kontinuitetu razvijamo i unapreÄ\x91ujemo
|
162
|
+
prepoznatljivost Apple tehnologija prezentirajuÄ\x87i upotrebnu vrijednost
|
163
|
+
Apple rjeÅ¡enja, na domaÄ\x87em i regionalnom tržiÅ¡tu.\\r\\n\\r\\nNaÅ¡ fokus
|
164
|
+
nije iskljuÄ\x8Divo na tehnologijama veÄ\x87 kako te tehnologije podrediti
|
165
|
+
potrebama korisnika. Sukladno tome, Filex nije samo još jedna u nizu trgovina
|
166
|
+
u koju Ä\x87ete doÄ\x87i \\\"pokupiti\\\" svoj Apple ureÄ\x91aj, veÄ\x87 mjesto
|
167
|
+
na kojem Ä\x87ete postavljati pitanja, razgovarati i diskutirati te na kraju
|
168
|
+
izaÄ\x87i sa rjeÅ¡enjem - ma kako god ono na kraju izgledalo!\\r\\n\\r\\nKontaktirajte
|
169
|
+
nas preko našeg Internet Store-a (www.filex.hr), ili nam pišite na prodaja@filx.hr
|
170
|
+
ili servis@filex.hr.\\r\\nI svakako nam se pridružite na Facebook-u na http://www.facebook.com/pages/Filex-Moj-Apple-DuÄ\x87an-i-Servis/131194173598671\\r\\n\\r\\nVaÅ¡e
|
171
|
+
zadovoljstvo naša je misija!\",\n \"id\": 2303504,\n \"industries\":
|
172
|
+
{\n \"_total\": 1,\n \"values\": [{\n \"code\":
|
173
|
+
\"3\",\n \"name\": \"Computer Hardware\"\n }]\n },\n
|
174
|
+
\ \"name\": \"Filex Apple Store & Support\",\n \"specialties\":
|
175
|
+
{\n \"_total\": 4,\n \"values\": [\n \"Apple
|
176
|
+
Store\",\n \"Apple Podrška i Servis\",\n \"Apple Rješenja\",\n
|
177
|
+
\ \"Apple B2B\"\n ]\n }\n },\n {\n \"description\":
|
178
|
+
\"Als Apple een nieuwssite zou maken in Vlaanderen, dan was het AppleVlaanderen.
|
179
|
+
AppleVlaanderen is gemaakt met dezelfde passie en aandacht voor detail als
|
180
|
+
de producten van Apple zelf.\\r\\n\\r\\nWe behandelen de nieuwsfeiten over
|
181
|
+
Apple met zorg en proberen u zo goed mogelijk in te lichten als Apple-Fan
|
182
|
+
in Vlaanderen. Dagelijks circuleren er duizenden geruchten over Apple in het
|
183
|
+
algemeen, onze taak is deze te bundelen en u mee te delen.\\r\\n\\r\\nDit
|
184
|
+
doen we met veel liefde voor de verschillende producten en voor Apple in het
|
185
|
+
algemeen. Onze medewerkers werken allemaal op vrijwillige basis en hebben
|
186
|
+
voldoende kennis over de producten van Apple.\",\n \"id\": 2419290,\n
|
187
|
+
\ \"industries\": {\n \"_total\": 1,\n \"values\":
|
188
|
+
[{\n \"code\": \"81\",\n \"name\": \"Newspapers\"\n
|
189
|
+
\ }]\n },\n \"name\": \"Apple Nieuws Vlaanderen\",\n
|
190
|
+
\ \"specialties\": {\n \"_total\": 4,\n \"values\":
|
191
|
+
[\n \"apple\",\n \"iPhone\",\n \"iPad\",\n
|
192
|
+
\ \"mac\"\n ]\n }\n },\n {\n \"description\":
|
193
|
+
\"OGGO est une société de conseils et solutions Apple Macintosh basée Ã
|
194
|
+
Genève, nous proposons notre savoir faire essentiellement aux PME et particuliers.\\r\\n\\r\\nNos
|
195
|
+
services en un coup d'oeil :\\r\\n\\r\\n// Réparations\\r\\n// Optimisations
|
196
|
+
matérielles\\r\\n// Contrats de maintenance\\r\\n// Dépannage sur site\\r\\n//
|
197
|
+
Interventions urgentes\\r\\n// Maintenance\\r\\n// Aide à l'achat\\r\\n//
|
198
|
+
Formations\",\n \"id\": 2260437,\n \"industries\": {\n \"_total\":
|
199
|
+
1,\n \"values\": [{\n \"code\": \"96\",\n \"name\":
|
200
|
+
\"Information Technology & Services\"\n }]\n },\n \"name\":
|
201
|
+
\"OGGO - Services Apple Macintosh\",\n \"specialties\": {\n \"_total\":
|
202
|
+
7,\n \"values\": [\n \"Consulting & conseils Apple Macintosh\",\n
|
203
|
+
\ \"Support Apple Macintosh\",\n \"Maintenance Mac OS
|
204
|
+
X Server\",\n \"Dépannage Mac OS X\",\n \"Installation
|
205
|
+
Mac OS X Server\",\n \"Interventions Apple Macintosh\",\n \"Formation
|
206
|
+
Apple Macintosh\"\n ]\n }\n },\n {\n \"description\":
|
207
|
+
\"Apple-Crumble provides sound advice, sales and support for all apple mac
|
208
|
+
products and related peripherals including external hard drives, printers,
|
209
|
+
scanners and both apple and 3rd party software. Apple-Crumble are also experts
|
210
|
+
in troubleshooting, repair and maintenance. Our staff are apple trained and
|
211
|
+
certified with over 15 years experience.\\r\\n\\r\\nAll work is guaranteed
|
212
|
+
and all enquiries are welcome.\\r\\n\\r\\nWe are obviously very \\u2018pro\\u2019
|
213
|
+
apple and firmly believe that once you go mac you never go back!\\r\\n\\r\\nFor
|
214
|
+
your convenience Apple-Crumble have our own workshop and offices with free
|
215
|
+
parking in Penzance, Cornwall so that you have the extra peace of mind knowing
|
216
|
+
that your equipment is being serviced in a clean and safe environment. You
|
217
|
+
may also view, demo and purchase new hardware or add-ons, as well as discussing
|
218
|
+
tailor-made options for you and/or your business.\\r\\n\\r\\nApple-Crumble\\u2019s
|
219
|
+
service extends to on-site visits for emergency or contract call-outs, as
|
220
|
+
well as delivery and installation of new products and systems. We cover Penzance,
|
221
|
+
Falmouth, Helston and the Lizard, St Ives, Hayle, Truro, Camborne, Redruth,
|
222
|
+
and all surrounding areas including north Cornwall and Devon\\r\\n\\r\\nIn
|
223
|
+
most cases it is safer and more cost effective to bring your hardware to us
|
224
|
+
as we are geared up for any static or time delay issues, but it is very rare
|
225
|
+
that we cannot provide a solution, wherever you may be!\",\n \"id\":
|
226
|
+
1049054,\n \"industries\": {\n \"_total\": 1,\n \"values\":
|
227
|
+
[{\n \"code\": \"3\",\n \"name\": \"Computer Hardware\"\n
|
228
|
+
\ }]\n },\n \"name\": \"Apple Crumble\"\n }\n ]\n
|
229
|
+
\ },\n \"numResults\": 8450\n}"
|
230
|
+
http_version: '1.1'
|
231
|
+
recorded_at: Tue, 04 Jun 2013 03:42:37 GMT
|
232
|
+
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\":
|
55
|
+
{\n \"_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
|
@@ -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="8HvACp7Bnl1RHEamMoOAgSExAIsa0ZmPg38voXltI",
|
14
|
+
oauth_signature="vU6TKCCBvu783h%2B0diQLZkcBKb8%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
|
+
- XPJE34FJFO
|
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
|
+
\"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
|