linkedin-drspin 0.3.6

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 (58) hide show
  1. data/.autotest +14 -0
  2. data/.document +5 -0
  3. data/.gemtest +0 -0
  4. data/.gitignore +41 -0
  5. data/.rspec +1 -0
  6. data/.travis.yml +5 -0
  7. data/Gemfile +7 -0
  8. data/LICENSE +20 -0
  9. data/README.markdown +78 -0
  10. data/Rakefile +19 -0
  11. data/changelog.markdown +71 -0
  12. data/examples/authenticate.rb +21 -0
  13. data/examples/network.rb +12 -0
  14. data/examples/profile.rb +18 -0
  15. data/examples/sinatra.rb +77 -0
  16. data/examples/status.rb +6 -0
  17. data/lib/linked_in/api.rb +11 -0
  18. data/lib/linked_in/api/comment_methods.rb +33 -0
  19. data/lib/linked_in/api/company_search_methods.rb +65 -0
  20. data/lib/linked_in/api/group_methods.rb +18 -0
  21. data/lib/linked_in/api/people_search_methods.rb +112 -0
  22. data/lib/linked_in/api/post_methods.rb +33 -0
  23. data/lib/linked_in/api/query_methods.rb +81 -0
  24. data/lib/linked_in/api/update_methods.rb +55 -0
  25. data/lib/linked_in/client.rb +51 -0
  26. data/lib/linked_in/errors.rb +19 -0
  27. data/lib/linked_in/helpers.rb +6 -0
  28. data/lib/linked_in/helpers/authorization.rb +68 -0
  29. data/lib/linked_in/helpers/request.rb +80 -0
  30. data/lib/linked_in/mash.rb +68 -0
  31. data/lib/linked_in/search.rb +56 -0
  32. data/lib/linked_in/version.rb +11 -0
  33. data/lib/linkedin.rb +32 -0
  34. data/linkedin.gemspec +25 -0
  35. data/spec/cases/api_spec.rb +92 -0
  36. data/spec/cases/linkedin_spec.rb +37 -0
  37. data/spec/cases/mash_spec.rb +85 -0
  38. data/spec/cases/oauth_spec.rb +166 -0
  39. data/spec/cases/search_spec.rb +206 -0
  40. data/spec/fixtures/cassette_library/LinkedIn_Api/Company_API.yml +73 -0
  41. data/spec/fixtures/cassette_library/LinkedIn_Client/_authorize_from_request.yml +28 -0
  42. data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token.yml +28 -0
  43. data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token/with_a_callback_url.yml +28 -0
  44. data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token/with_default_options.yml +28 -0
  45. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_company_name_option.yml +135 -0
  46. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options.yml +122 -0
  47. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options_with_fields.yml +72 -0
  48. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_keywords_string_parameter.yml +136 -0
  49. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option.yml +136 -0
  50. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option_with_pagination.yml +128 -0
  51. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_options_with_fields.yml +252 -0
  52. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_string_parameter.yml +73 -0
  53. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option.yml +71 -0
  54. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_a_facet.yml +111 -0
  55. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_facets_to_return.yml +71 -0
  56. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_pagination.yml +66 -0
  57. data/spec/helper.rb +30 -0
  58. metadata +237 -0
@@ -0,0 +1,252 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://api.linkedin.com:443/v1/company-search:(companies:(id,name,industries,description,specialties),num-results)?keywords=apple
6
+ body:
7
+ headers:
8
+ x-li-format:
9
+ - json
10
+ user-agent:
11
+ - OAuth gem v0.4.5
12
+ authorization:
13
+ - OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="q7OIazxfRqNeuKtIn86PThFXYXwe16NtNQgFe6mETo",
14
+ oauth_signature="tBpOJdPV3CvjKM%2Fu3IQ2oS%2BfKvI%3D", oauth_signature_method="HMAC-SHA1",
15
+ oauth_timestamp="1329994002", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
16
+ oauth_version="1.0"
17
+ response: !ruby/struct:VCR::Response
18
+ status: !ruby/struct:VCR::ResponseStatus
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ server:
23
+ - Apache-Coyote/1.1
24
+ x-li-request-id:
25
+ - HHH4PB27GU
26
+ vary:
27
+ - ! '*'
28
+ x-li-format:
29
+ - json
30
+ content-type:
31
+ - application/json;charset=UTF-8
32
+ transfer-encoding:
33
+ - chunked
34
+ date:
35
+ - Thu, 23 Feb 2012 10:46:46 GMT
36
+ body: ! "{\n \"companies\": {\n \"_count\": 10,\n \"_start\": 0,\n \"_total\":
37
+ 5696,\n \"values\": [\n {\n \"description\": \"Apple designs
38
+ Macs, the best personal computers in the world, along with Mac OS X, iLife,
39
+ iWork, and professional software. Apple leads the digital music revolution with
40
+ its iPods and iTunes online store. Apple is reinventing the mobile phone with
41
+ its revolutionary iPhone and App Store, and has recently introduced its magical
42
+ iPad which is defining the future of mobile media and computing devices.\",\n
43
+ \ \"id\": 162479,\n \"industries\": {\n \"_total\": 1,\n
44
+ \ \"values\": [{\n \"code\": \"4\",\n \"name\":
45
+ \"Computer Software\"\n }]\n },\n \"name\": \"Apple\",\n
46
+ \ \"specialties\": {\n \"_total\": 4,\n \"values\":
47
+ [\n \"Innovative product development\",\n \"world class
48
+ operations\",\n \"Retail\",\n \"Telephone Support\"\n
49
+ \ ]\n }\n },\n {\n \"description\": \"Every
50
+ Apple Retail Store offers customers great ways to get the most out of their
51
+ Mac and iPod, such as free advice at the Genius Bar, popular in-store workshops
52
+ and special programs for kids. Customers can also book a free appointment with
53
+ a Personal Shopper to get expert buying advice or help selecting the perfect
54
+ gift for everyone on their list. The hands-on Apple Retail Store experience
55
+ gives customers a chance to test-drive Apple\\u2019s entire product line.\",\n
56
+ \ \"id\": 1276,\n \"industries\": {\n \"_total\": 1,\n
57
+ \ \"values\": [{\n \"code\": \"27\",\n \"name\":
58
+ \"Retail\"\n }]\n },\n \"name\": \"Apple Retail\",\n
59
+ \ \"specialties\": {\n \"_total\": 3,\n \"values\":
60
+ [\n \"retail\",\n \"technology\",\n \"computers\"\n
61
+ \ ]\n }\n },\n {\n \"description\": \"Xerox
62
+ was founded in 1906 in Rochester, New York as \\\"The Haloid Company\\\", which
63
+ originally manufactured photographic paper and equipment. The company subsequently
64
+ changed its name to \\\"Haloid Xerox\\\" in 1958 and then simply \\\"Xerox\\\"
65
+ in 1961. The company came to prominence in 1959 with the introduction of the
66
+ first plain paper photocopier using the process of xerography developed by Chester
67
+ Carlson, the Xerox 914. Before releasing the 914, Xerox had also introduced
68
+ the first xerographic printer, the \\\"Copyflo\\\" in 1955.\\r\\n\\r\\nIn 1970
69
+ Xerox opened the Xerox PARC research facility. The facility developed many modern
70
+ computing methods such as the mouse and the graphical user interface. From these
71
+ inventions, Xerox PARC created the Xerox Alto in 1973, a small minicomputer
72
+ similar to a workstation and personal computer. The Alto was never commercially
73
+ sold, as Xerox itself could not see the sales potential of it. In 1979, several
74
+ Apple Computer employees, including Steve Jobs, visited Xerox PARC, interested
75
+ in seeing their developments. Jobs and the others saw the commercial potential
76
+ of the GUI and mouse, and began development of the Apple Lisa, which Apple introduced
77
+ in 1983.\\r\\n \\r\\nHeadquartered in Norwalk, Conn., today Xerox is a $22
78
+ billion leading global enterprise for business process and document management.
79
+ Through its portfolio of technology and services, Xerox provides the essential
80
+ back-office support that clears the way for clients to focus on what they do
81
+ best: their real business. Xerox provides leading-edge document technology,
82
+ services, software and genuine Xerox supplies for graphic communication and
83
+ office printing environments of any size. Through ACS, A Xerox Company, which
84
+ Xerox acquired in February 2010, Xerox also offers extensive business process
85
+ outsourcing and IT outsourcing services, including data processing, HR benefits
86
+ management, finance support, and CRM services for commercial and government
87
+ organizations worldwide.\",\n \"id\": 1373,\n \"industries\":
88
+ {\n \"_total\": 1,\n \"values\": [{\n \"code\":
89
+ \"83\",\n \"name\": \"Printing\"\n }]\n },\n \"name\":
90
+ \"Xerox\",\n \"specialties\": {\n \"_total\": 6,\n \"values\":
91
+ [\n \"Office Solutions\",\n \"Printing\",\n \"document
92
+ management\",\n \"managed print services\",\n \"ITO\",\n
93
+ \ \"BPO\"\n ]\n }\n },\n {\n \"description\":
94
+ \"With more than 23 million members in the United States and Canada, Netflix,
95
+ Inc. [Nasdaq: NFLX] is the world\\u2019s leading Internet subscription service
96
+ for enjoying movies and TV shows. For $7.99 a month, Netflix members can instantly
97
+ watch unlimited movies and TV episodes streamed over the Internet to PCs, Macs
98
+ and TVs. Among the large and expanding base of devices streaming from Netflix
99
+ are Microsoft\\u2019s Xbox 360, Nintendo\\u2019s Wii and Sony\\u2019s PS3 consoles;
100
+ an array of Blu-ray disc players, Internet-connected TVs, home theater systems,
101
+ digital video recorders and Internet video players; Apple\\u2019s iPhone, iPad
102
+ and iPod touch, as well as Apple TV and Google TV. In all, more than 200 devices
103
+ that stream from Netflix are available in the U.S. and a growing number are
104
+ available in Canada. For more information, visit www.netflix.com.\",\n \"id\":
105
+ 165158,\n \"industries\": {\n \"_total\": 1,\n \"values\":
106
+ [{\n \"code\": \"28\",\n \"name\": \"Entertainment\"\n
107
+ \ }]\n },\n \"name\": \"Netflix\",\n \"specialties\":
108
+ {\n \"_total\": 1,\n \"values\": [\"The best way to watch
109
+ movies and TV shows instantly.\"]\n }\n },\n {\n \"description\":
110
+ \"HCL Infosystems Ltd, with revenue of US $ 2.5 billion (Rs. 12,057 Cr) is India\\u2019s
111
+ premier hardware, services and ICT systems integration company offering a wide
112
+ \ spectrum of ICT products that includes Computing, Storage, Networking, Security,
113
+ Telecom, Imaging and Retail. HCL is a one-stop-shop for all the ICT requirements
114
+ of an organization. India's leading System Integration and Infrastructure Management
115
+ Services Organization, HCL has specialized expertise across verticals including
116
+ Telecom, BFSI, eGovernance & Power. HCL has India's largest distribution and
117
+ retail network, taking to market a range of Digital Lifestyle products in partnership
118
+ with leading global ICT brands, including Apple, Cisco, Ericsson, Kingston,
119
+ Kodak, Konica Minolta, Microsoft, Nokia, and many more. HCL today has India's
120
+ largest vertically integrated computer manufacturing facility with over three
121
+ decades of electronic manufacturing experience & HCL desktops is the largest
122
+ selling brand into the enterprise space. With India\\u2019s largest ICT services
123
+ network that reaches to every corner of India, HCL\\u2019s award winning Support
124
+ Services makes it the preferred choice of enterprise and consumers alike. HCL
125
+ Infosystems has a 100% subsidiary that addresses the physical security technology
126
+ system integration market. The subsidiary leverages technology to build a security
127
+ framework called \\u2018Safe State\\u2019 that safe guard\\u2019s life, infrastructure
128
+ & society. \\r\\nFor more information please visit us at www.hclinfosystems.com\",\n
129
+ \ \"id\": 7240,\n \"industries\": {\n \"_total\": 1,\n
130
+ \ \"values\": [{\n \"code\": \"96\",\n \"name\":
131
+ \"Information Technology and Services\"\n }]\n },\n \"name\":
132
+ \"HCL Infosystems Ltd\",\n \"specialties\": {\n \"_total\":
133
+ 9,\n \"values\": [\n \"ERP Consulting & Services\",\n \"System
134
+ Integration\",\n \"IT Infrastructure Consultancy\",\n \"Managed
135
+ Services\",\n \"Strategic Outsourcing Services\",\n \"Infostructure
136
+ Services\",\n \"Networking Infrastructure\",\n \"Facilities
137
+ Management\",\n \"Career Development Centre and VPN & Managed Network\"\n
138
+ \ ]\n }\n },\n {\n \"description\": \"Experience
139
+ the Difference. \\r\\nFor over 40 years, Apple Vacations has provided the
140
+ most value in vacations to millions of people. Throughout the years, we\\u2019ve
141
+ provided what you want in a vacation \\u2013 great service, convenience, and
142
+ value. We understand just how important your vacation is. We know because, like
143
+ you, vacations are important to us too. \\r\\n \\r\\nApple Vacations is now
144
+ a company of almost 1500 energetic, hardworking employees with the same entrepreneurial
145
+ attitudes as our founders. Headquartered just outside Philadelphia with regional
146
+ offices in Chicago and Boston, the company is completely focused on providing
147
+ quality vacations for our customers. Employees are empowered to make decisions
148
+ that impact the quality of their customers\\u2019 vacations on a daily basis.
149
+ Since our humble beginnings, Apple Vacations has created the ultimate \\u201cbeginning-to-end\\u201d
150
+ vacation experience for customers. Apple Vacations employees will greet you
151
+ at your departure airport in more than 20 cities; and will meet your flight
152
+ in our charter destinations. Apple Vacations\\u2019 sister companies, USA3000
153
+ Airlines, flies customers to their destinations from more than 20 U.S. cities;
154
+ and Amstar, is the destination management company in-resort with uniformed representatives,
155
+ who will greet you upon arrival and assist you while you are at your resort.
156
+ Unlike any other travel company, Apple Vacations truly provides the ultimate
157
+ in a quality vacation experience.\",\n \"id\": 19271,\n \"industries\":
158
+ {\n \"_total\": 1,\n \"values\": [{\n \"code\":
159
+ \"30\",\n \"name\": \"Leisure and Travel\"\n }]\n },\n
160
+ \ \"name\": \"Apple Vacations\",\n \"specialties\": {\n \"_total\":
161
+ 2,\n \"values\": [\n \"Leisure travel\",\n \"all
162
+ inclusive vacation packages\"\n ]\n }\n },\n {\n \"description\":
163
+ \"FileMaker is the leader in easy-to-use database software. Millions of people,
164
+ from individuals to some of the world's largest companies, rely on FileMaker
165
+ software to manage, analyze and share essential information. \\r\\n\\r\\nThe
166
+ company's products are the FileMaker Pro line - versatile database software
167
+ for teams and organizations, for Windows, Mac, iPhone, iPad and the web - and
168
+ Bento, the personal database for Mac, iPhone and iPad. FileMaker, Inc. is a
169
+ subsidiary of Apple.\",\n \"id\": 163801,\n \"industries\": {\n
170
+ \ \"_total\": 1,\n \"values\": [{\n \"code\": \"4\",\n
171
+ \ \"name\": \"Computer Software\"\n }]\n },\n \"name\":
172
+ \"FileMaker\",\n \"specialties\": {\n \"_total\": 10,\n \"values\":
173
+ [\n \"database\",\n \"online database\",\n \"easy
174
+ database\",\n \"software\",\n \"iphone software\",\n \"iphone
175
+ database\",\n \"organization\",\n \"server\",\n \"database
176
+ server\",\n \"web database\"\n ]\n }\n },\n
177
+ \ {\n \"description\": \"GHA Technologies, Inc. is a nationally expanding
178
+ network, computer reseller and systems integrator with offices nationwide. GHA
179
+ is listed as the 196 on the national VAR 500 list and 32nd largest private corporation
180
+ in Arizona. \\r\\n\\r\\nWe sell Apple, HP, Dell, IBM, Lenovo, Sony, Fujitsu,
181
+ APC, Symantec, Panasonic, Microsoft, Vmware, Intel, Cisco, Premio and all the
182
+ hottest Internet, bandwidth, security, VoIP, wireless, video, identification
183
+ technologies and a vast offering of technology services. \\r\\n\\r\\nSome facts
184
+ about GHA Technologies, Inc.\\r\\n\\u2022 One of the largest, private providers
185
+ of technology solutions for corporate, government & education markets in America.\\r\\n\\u2022
186
+ Our vast access to coast-to-coast distribution network and warehouse facilities
187
+ support just-in-time delivery.\\r\\n\\u2022 Mission-critical delivery-Orders
188
+ placed by 9:00 p.m. EST (8:00 p.m. CST) can be received the next morning for
189
+ in-stock items.\\r\\n\\u2022 Secure, password-protected 24-hour access to your
190
+ own personal, customized website with special pricing on more than 1.1 million
191
+ products from more than 1,000 manufacturers.\\r\\n\\r\\nGHA Technologies, Inc.
192
+ has about 100 + employees with annual sales of approximately $80 million. Our
193
+ highly motivated and experienced sales professionals provide the highest level
194
+ of service to our customers. \\r\\n\\r\\nGHA Technologies, Inc. is currently
195
+ HIRING industry experienced technology sales professionals nationwide. Please
196
+ send your resume to resumes@gha-associates.com. We look forward to hearing from
197
+ you.\",\n \"id\": 21482,\n \"industries\": {\n \"_total\":
198
+ 1,\n \"values\": [{\n \"code\": \"96\",\n \"name\":
199
+ \"Information Technology and Services\"\n }]\n },\n \"name\":
200
+ \"GHA Technologies\",\n \"specialties\": {\n \"_total\": 5,\n
201
+ \ \"values\": [\n \"Hardware, Software and Technology Components\",\n
202
+ \ \"Technology Services - Integration, Installation and Specialized\",\n
203
+ \ \"Corporate Commercial Business Clients\",\n \"Non-profit
204
+ Organizations\",\n \"Government and Educational Institutions\"\n
205
+ \ ]\n }\n },\n {\n \"description\": \"Apple
206
+ & Associates is an executive search firm that specializes in the Pharmaceutical,
207
+ Medical Device and Consumer Product Industries. We provide extensive coverage
208
+ of these worldwide markets and have forged a solid reputation in the industry
209
+ as a competent, aggressive, and resource-rich recruiting firm. We are a nation-wide
210
+ company with offices through-out the United States. \\r\\n\\r\\nApple & Associates
211
+ belongs to Intercity Personnel Associates (IPA) and the Top Echelon Network.
212
+ \ Through these worldwide recruiting networks, we share confidentially coded
213
+ information about available positions and receive qualified candidates within
214
+ a short period of time. With one phone call you not only have rapid access
215
+ to our candidates, but also to qualified candidates from over 1,000 of the nation\\u2019s
216
+ other top recruiting firms. Because our executive recruiters specialize in
217
+ different industry segments, we can give you the service you deserve in a fast,
218
+ focused, and efficient manner and provide you with quality industry specific
219
+ candidates. \\r\\n\\r\\nWe realize the importance of hiring professionals
220
+ who understand and are able to assimilate with your company\\u2019s business
221
+ model, culture, process, equipment, and materials. Our team has studied the
222
+ hiring decisions that make the firms in the Pharmaceutical and Medical Device
223
+ industries so successful. Our candidates will meet the standard your company
224
+ demands, with the technical and industry background to match.\",\n \"id\":
225
+ 112136,\n \"industries\": {\n \"_total\": 1,\n \"values\":
226
+ [{\n \"code\": \"104\",\n \"name\": \"Staffing and Recruiting\"\n
227
+ \ }]\n },\n \"name\": \"Apple & Associates\",\n \"specialties\":
228
+ {\n \"_total\": 20,\n \"values\": [\n \"Medical
229
+ Device\",\n \"Pharmaceutical\",\n \"Power\",\n \"Energy\",\n
230
+ \ \"Consumer Products\",\n \"Supply Chain\",\n \"Purchasing\",\n
231
+ \ \"Engineering\",\n \"Marketing\",\n \"Sales\",\n
232
+ \ \"Human Resources\",\n \"Science\",\n \"Finance\",\n
233
+ \ \"Manufacturing\",\n \"Operations\",\n \"R&D\",\n
234
+ \ \"Six Sigma\",\n \"IT\",\n \"chemist\",\n
235
+ \ \"Executive Management\"\n ]\n }\n },\n {\n
236
+ \ \"description\": \"The Ultimate Computer Store - We empower customers
237
+ with computer and electronic solutions coupled with excellent customer service
238
+ that sets us apart from the rest.\\r\\n\\r\\nFounded in 1979 by two former Radio
239
+ Shack employees. The first Micro Center store was a 900 sq ft (84 m2). storefront
240
+ located in the Lane Avenue Shopping Center in Upper Arlington, Ohio. There are
241
+ currently 22 Micro Center stores nation-wide in California, Colorado, Georgia,
242
+ Illinois, Kansas, Massachussetts, Maryland, Michigan, Minnesota, Missouri, New
243
+ Jersey, New York, Ohio, Pennsylvania, Texas, and Virginia. A 23rd store will
244
+ open in Yonkers, NY this spring.\",\n \"id\": 15552,\n \"industries\":
245
+ {\n \"_total\": 1,\n \"values\": [{\n \"code\":
246
+ \"27\",\n \"name\": \"Retail\"\n }]\n },\n \"name\":
247
+ \"Micro Center\",\n \"specialties\": {\n \"_total\": 7,\n \"values\":
248
+ [\n \"computers\",\n \"Apple\",\n \"build your
249
+ own\",\n \"iPod\",\n \"GPS\",\n \"TVs\",\n
250
+ \ \"service\"\n ]\n }\n }\n ]\n },\n \"numResults\":
251
+ 5696\n}"
252
+ http_version: '1.1'
@@ -0,0 +1,73 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://api.linkedin.com:443/v1/company-search?keywords=apple
6
+ body:
7
+ headers:
8
+ x-li-format:
9
+ - json
10
+ user-agent:
11
+ - OAuth gem v0.4.5
12
+ authorization:
13
+ - OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="AjzqbXMKJpWjOwkez3vTKhBzkUwg1hl5oDycGFPqJhU",
14
+ oauth_signature="2srg9HlZNRvszkxMALkx%2FNwSFBg%3D", oauth_signature_method="HMAC-SHA1",
15
+ oauth_timestamp="1329991290", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
16
+ oauth_version="1.0"
17
+ response: !ruby/struct:VCR::Response
18
+ status: !ruby/struct:VCR::ResponseStatus
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ server:
23
+ - Apache-Coyote/1.1
24
+ x-li-request-id:
25
+ - LPZS6ZUV2L
26
+ vary:
27
+ - ! '*'
28
+ x-li-format:
29
+ - json
30
+ content-type:
31
+ - application/json;charset=UTF-8
32
+ transfer-encoding:
33
+ - chunked
34
+ date:
35
+ - Thu, 23 Feb 2012 10:01:33 GMT
36
+ nncoection:
37
+ - close
38
+ body: ! "{\n \"companies\": {\n \"_count\": 10,\n \"_start\": 0,\n \"_total\":
39
+ 5696,\n \"values\": [\n {\n \"id\": 162479,\n \"name\":
40
+ \"Apple\"\n },\n {\n \"id\": 1276,\n \"name\": \"Apple
41
+ Retail\"\n },\n {\n \"id\": 1373,\n \"name\": \"Xerox\"\n
42
+ \ },\n {\n \"id\": 165158,\n \"name\": \"Netflix\"\n
43
+ \ },\n {\n \"id\": 7240,\n \"name\": \"HCL Infosystems
44
+ Ltd\"\n },\n {\n \"id\": 19271,\n \"name\": \"Apple
45
+ Vacations\"\n },\n {\n \"id\": 163801,\n \"name\": \"FileMaker\"\n
46
+ \ },\n {\n \"id\": 21482,\n \"name\": \"GHA Technologies\"\n
47
+ \ },\n {\n \"id\": 112136,\n \"name\": \"Apple & Associates\"\n
48
+ \ },\n {\n \"id\": 15552,\n \"name\": \"Micro Center\"\n
49
+ \ }\n ]\n },\n \"facets\": {\n \"_total\": 1,\n \"values\": [{\n
50
+ \ \"buckets\": {\n \"_total\": 10,\n \"values\": [\n {\n
51
+ \ \"code\": \"us:0\",\n \"count\": 1836,\n \"name\":
52
+ \"United States\",\n \"selected\": false\n },\n {\n
53
+ \ \"code\": \"gb:0\",\n \"count\": 491,\n \"name\":
54
+ \"United Kingdom\",\n \"selected\": false\n },\n {\n
55
+ \ \"code\": \"us:84\",\n \"count\": 237,\n \"name\":
56
+ \"San Francisco Bay Area\",\n \"selected\": false\n },\n
57
+ \ {\n \"code\": \"nl:0\",\n \"count\": 227,\n
58
+ \ \"name\": \"Netherlands\",\n \"selected\": false\n },\n
59
+ \ {\n \"code\": \"us:70\",\n \"count\": 208,\n
60
+ \ \"name\": \"Greater New York City Area\",\n \"selected\":
61
+ false\n },\n {\n \"code\": \"ca:0\",\n \"count\":
62
+ 199,\n \"name\": \"Canada\",\n \"selected\": false\n },\n
63
+ \ {\n \"code\": \"au:0\",\n \"count\": 130,\n
64
+ \ \"name\": \"Australia\",\n \"selected\": false\n },\n
65
+ \ {\n \"code\": \"us:49\",\n \"count\": 130,\n
66
+ \ \"name\": \"Greater Los Angeles Area\",\n \"selected\":
67
+ false\n },\n {\n \"code\": \"in:0\",\n \"count\":
68
+ 121,\n \"name\": \"India\",\n \"selected\": false\n },\n
69
+ \ {\n \"code\": \"it:0\",\n \"count\": 121,\n
70
+ \ \"name\": \"Italy\",\n \"selected\": false\n }\n
71
+ \ ]\n },\n \"code\": \"location\",\n \"name\": \"Location\"\n
72
+ \ }]\n },\n \"numResults\": 5696\n}"
73
+ http_version: '1.1'
@@ -0,0 +1,71 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://api.linkedin.com:443/v1/company-search?keywords=apple
6
+ body:
7
+ headers:
8
+ x-li-format:
9
+ - json
10
+ user-agent:
11
+ - OAuth gem v0.4.5
12
+ authorization:
13
+ - OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="ejdXp5uWJUyFyQOZKvwjvc3s3ircDxo0qmZPddXOQnQ",
14
+ oauth_signature="rUJEgmU4z6mKlIuB5lmkfVbcUYE%3D", oauth_signature_method="HMAC-SHA1",
15
+ oauth_timestamp="1329991292", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
16
+ oauth_version="1.0"
17
+ response: !ruby/struct:VCR::Response
18
+ status: !ruby/struct:VCR::ResponseStatus
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ server:
23
+ - Apache-Coyote/1.1
24
+ x-li-request-id:
25
+ - 3UFS93YLH8
26
+ vary:
27
+ - ! '*'
28
+ x-li-format:
29
+ - json
30
+ content-type:
31
+ - application/json;charset=UTF-8
32
+ transfer-encoding:
33
+ - chunked
34
+ date:
35
+ - Thu, 23 Feb 2012 10:01:33 GMT
36
+ body: ! "{\n \"companies\": {\n \"_count\": 10,\n \"_start\": 0,\n \"_total\":
37
+ 5696,\n \"values\": [\n {\n \"id\": 162479,\n \"name\":
38
+ \"Apple\"\n },\n {\n \"id\": 1276,\n \"name\": \"Apple
39
+ Retail\"\n },\n {\n \"id\": 1373,\n \"name\": \"Xerox\"\n
40
+ \ },\n {\n \"id\": 165158,\n \"name\": \"Netflix\"\n
41
+ \ },\n {\n \"id\": 7240,\n \"name\": \"HCL Infosystems
42
+ Ltd\"\n },\n {\n \"id\": 19271,\n \"name\": \"Apple
43
+ Vacations\"\n },\n {\n \"id\": 163801,\n \"name\": \"FileMaker\"\n
44
+ \ },\n {\n \"id\": 21482,\n \"name\": \"GHA Technologies\"\n
45
+ \ },\n {\n \"id\": 112136,\n \"name\": \"Apple & Associates\"\n
46
+ \ },\n {\n \"id\": 15552,\n \"name\": \"Micro Center\"\n
47
+ \ }\n ]\n },\n \"facets\": {\n \"_total\": 1,\n \"values\": [{\n
48
+ \ \"buckets\": {\n \"_total\": 10,\n \"values\": [\n {\n
49
+ \ \"code\": \"us:0\",\n \"count\": 1836,\n \"name\":
50
+ \"United States\",\n \"selected\": false\n },\n {\n
51
+ \ \"code\": \"gb:0\",\n \"count\": 491,\n \"name\":
52
+ \"United Kingdom\",\n \"selected\": false\n },\n {\n
53
+ \ \"code\": \"us:84\",\n \"count\": 237,\n \"name\":
54
+ \"San Francisco Bay Area\",\n \"selected\": false\n },\n
55
+ \ {\n \"code\": \"nl:0\",\n \"count\": 227,\n
56
+ \ \"name\": \"Netherlands\",\n \"selected\": false\n },\n
57
+ \ {\n \"code\": \"us:70\",\n \"count\": 208,\n
58
+ \ \"name\": \"Greater New York City Area\",\n \"selected\":
59
+ false\n },\n {\n \"code\": \"ca:0\",\n \"count\":
60
+ 199,\n \"name\": \"Canada\",\n \"selected\": false\n },\n
61
+ \ {\n \"code\": \"au:0\",\n \"count\": 130,\n
62
+ \ \"name\": \"Australia\",\n \"selected\": false\n },\n
63
+ \ {\n \"code\": \"us:49\",\n \"count\": 130,\n
64
+ \ \"name\": \"Greater Los Angeles Area\",\n \"selected\":
65
+ false\n },\n {\n \"code\": \"in:0\",\n \"count\":
66
+ 121,\n \"name\": \"India\",\n \"selected\": false\n },\n
67
+ \ {\n \"code\": \"it:0\",\n \"count\": 121,\n
68
+ \ \"name\": \"Italy\",\n \"selected\": false\n }\n
69
+ \ ]\n },\n \"code\": \"location\",\n \"name\": \"Location\"\n
70
+ \ }]\n },\n \"numResults\": 5696\n}"
71
+ http_version: '1.1'
@@ -0,0 +1,111 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://api.linkedin.com:443/v1/company-search?facets=industry%20location&keywords=apple
6
+ body:
7
+ headers:
8
+ x-li-format:
9
+ - json
10
+ user-agent:
11
+ - OAuth gem v0.4.5
12
+ authorization:
13
+ - OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="xcTeuTk5cLV7tNNj54FHtRznawbANOaFufpxhOzMoo",
14
+ oauth_signature="JoirhKilAS83lfN9j27EccA5EBw%3D", oauth_signature_method="HMAC-SHA1",
15
+ oauth_timestamp="1329991294", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
16
+ oauth_version="1.0"
17
+ response: !ruby/struct:VCR::Response
18
+ status: !ruby/struct:VCR::ResponseStatus
19
+ code: 400
20
+ message: Bad Request
21
+ headers:
22
+ server:
23
+ - Apache-Coyote/1.1
24
+ x-li-request-id:
25
+ - KK2E56GW6H
26
+ date:
27
+ - Thu, 23 Feb 2012 10:01:34 GMT
28
+ vary:
29
+ - ! '*'
30
+ x-li-format:
31
+ - json
32
+ content-type:
33
+ - application/json;charset=UTF-8
34
+ content-length:
35
+ - '151'
36
+ nncoection:
37
+ - close
38
+ body: ! "{\n \"errorCode\": 0,\n \"message\": \"Unknown facet code {industry
39
+ location}\",\n \"requestId\": \"KK2E56GW6H\",\n \"status\": 400,\n \"timestamp\":
40
+ 1329991295101\n}"
41
+ http_version: '1.1'
42
+ - !ruby/struct:VCR::HTTPInteraction
43
+ request: !ruby/struct:VCR::Request
44
+ method: :get
45
+ uri: https://api.linkedin.com:443/v1/company-search?facets=industry&keywords=apple
46
+ body:
47
+ headers:
48
+ x-li-format:
49
+ - json
50
+ user-agent:
51
+ - OAuth gem v0.4.5
52
+ authorization:
53
+ - OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="irnhySxSqqJGyvqrhpTSLcNDzNZRjJlwEje7dkhgvg",
54
+ oauth_signature="5giHjjs15I5NzMA%2FEYoPejTl4BI%3D", oauth_signature_method="HMAC-SHA1",
55
+ oauth_timestamp="1329991354", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
56
+ oauth_version="1.0"
57
+ response: !ruby/struct:VCR::Response
58
+ status: !ruby/struct:VCR::ResponseStatus
59
+ code: 200
60
+ message: OK
61
+ headers:
62
+ server:
63
+ - Apache-Coyote/1.1
64
+ x-li-request-id:
65
+ - 0VNTJU19QA
66
+ vary:
67
+ - ! '*'
68
+ x-li-format:
69
+ - json
70
+ content-type:
71
+ - application/json;charset=UTF-8
72
+ transfer-encoding:
73
+ - chunked
74
+ date:
75
+ - Thu, 23 Feb 2012 10:02:36 GMT
76
+ body: ! "{\n \"companies\": {\n \"_count\": 10,\n \"_start\": 0,\n \"_total\":
77
+ 5696,\n \"values\": [\n {\n \"id\": 162479,\n \"name\":
78
+ \"Apple\"\n },\n {\n \"id\": 1276,\n \"name\": \"Apple
79
+ Retail\"\n },\n {\n \"id\": 1373,\n \"name\": \"Xerox\"\n
80
+ \ },\n {\n \"id\": 165158,\n \"name\": \"Netflix\"\n
81
+ \ },\n {\n \"id\": 7240,\n \"name\": \"HCL Infosystems
82
+ Ltd\"\n },\n {\n \"id\": 19271,\n \"name\": \"Apple
83
+ Vacations\"\n },\n {\n \"id\": 163801,\n \"name\": \"FileMaker\"\n
84
+ \ },\n {\n \"id\": 21482,\n \"name\": \"GHA Technologies\"\n
85
+ \ },\n {\n \"id\": 112136,\n \"name\": \"Apple & Associates\"\n
86
+ \ },\n {\n \"id\": 15552,\n \"name\": \"Micro Center\"\n
87
+ \ }\n ]\n },\n \"facets\": {\n \"_total\": 1,\n \"values\": [{\n
88
+ \ \"buckets\": {\n \"_total\": 10,\n \"values\": [\n {\n
89
+ \ \"code\": \"96\",\n \"count\": 1386,\n \"name\":
90
+ \"Information Technology and Services\",\n \"selected\": false\n
91
+ \ },\n {\n \"code\": \"4\",\n \"count\":
92
+ 732,\n \"name\": \"Computer Software\",\n \"selected\":
93
+ false\n },\n {\n \"code\": \"3\",\n \"count\":
94
+ 313,\n \"name\": \"Computer Hardware\",\n \"selected\":
95
+ false\n },\n {\n \"code\": \"6\",\n \"count\":
96
+ 295,\n \"name\": \"Internet\",\n \"selected\": false\n
97
+ \ },\n {\n \"code\": \"80\",\n \"count\":
98
+ 219,\n \"name\": \"Marketing and Advertising\",\n \"selected\":
99
+ false\n },\n {\n \"code\": \"24\",\n \"count\":
100
+ 166,\n \"name\": \"Consumer Electronics\",\n \"selected\":
101
+ false\n },\n {\n \"code\": \"27\",\n \"count\":
102
+ 142,\n \"name\": \"Retail\",\n \"selected\": false\n },\n
103
+ \ {\n \"code\": \"109\",\n \"count\": 123,\n \"name\":
104
+ \"Computer Games\",\n \"selected\": false\n },\n {\n
105
+ \ \"code\": \"126\",\n \"count\": 120,\n \"name\":
106
+ \"Media Production\",\n \"selected\": false\n },\n {\n
107
+ \ \"code\": \"99\",\n \"count\": 117,\n \"name\":
108
+ \"Design\",\n \"selected\": false\n }\n ]\n },\n
109
+ \ \"code\": \"industry\",\n \"name\": \"Industry\"\n }]\n },\n
110
+ \ \"numResults\": 5696\n}"
111
+ http_version: '1.1'