linkedin2 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/.rspec +3 -0
- data/.travis.yml +4 -0
- data/README.md +3 -1
- data/Rakefile +6 -0
- data/lib/linkedin/api.rb +2 -0
- data/lib/linkedin/api/companies.rb +8 -2
- data/lib/linkedin/api/industries.rb +147 -147
- data/lib/linkedin/api/network_updates.rb +17 -0
- data/lib/linkedin/api/profiles.rb +4 -0
- data/lib/linkedin/base.rb +6 -3
- data/lib/linkedin/client.rb +5 -3
- data/lib/linkedin/configuration.rb +2 -2
- data/lib/linkedin/profile.rb +5 -6
- data/lib/linkedin/version.rb +1 -1
- data/linkedin.gemspec +2 -1
- data/spec/api/companies_spec.rb +20 -11
- data/spec/api/groups_spec.rb +3 -0
- data/spec/api/jobs_spec.rb +3 -0
- data/spec/api/network_updates_spec.rb +32 -0
- data/spec/api/profiles_spec.rb +36 -26
- data/spec/faraday_middleware/linkedin_error_response_spec.rb +10 -4
- data/spec/fixtures/requests/access_token.yml +55 -22
- data/spec/fixtures/requests/companies.yml +258 -0
- data/spec/fixtures/requests/invalid.yml +51 -0
- data/spec/fixtures/requests/network_updates.yml +743 -0
- data/spec/fixtures/requests/profiles.yml +201 -0
- data/spec/spec_helper.rb +15 -5
- data/spec/test_app.yml +3 -0
- metadata +55 -30
- data/spec/fixtures/requests/company.yml +0 -81
@@ -1,81 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.linkedin.com/v1/companies/id=1586
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
X-Li-Format:
|
11
|
-
- json
|
12
|
-
User-Agent:
|
13
|
-
- OAuth gem v0.4.5
|
14
|
-
Authorization:
|
15
|
-
- OAuth oauth_consumer_key="consumer_key", oauth_nonce="nonce", oauth_signature="signature",
|
16
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1319129843", oauth_token="token",
|
17
|
-
oauth_version="1.0"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- Apache-Coyote/1.1
|
25
|
-
Vary:
|
26
|
-
- ! '*'
|
27
|
-
X-Li-Format:
|
28
|
-
- json
|
29
|
-
Content-Type:
|
30
|
-
- application/json;charset=UTF-8
|
31
|
-
Transfer-Encoding:
|
32
|
-
- chunked
|
33
|
-
Date:
|
34
|
-
- Thu, 20 Oct 2011 16:57:24 GMT
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: ! "{\n \"id\": 1586,\n \"name\": \"Amazon\"\n}"
|
38
|
-
http_version: '1.1'
|
39
|
-
recorded_at: Wed, 10 Apr 2013 22:06:51 GMT
|
40
|
-
- request:
|
41
|
-
method: get
|
42
|
-
uri: https://api.linkedin.com/v1/companies/id=1586:(id,name,industry,locations:(address:(city,state,country-code),is-headquarters),employee-count-range)
|
43
|
-
body:
|
44
|
-
encoding: US-ASCII
|
45
|
-
string: ''
|
46
|
-
headers:
|
47
|
-
X-Li-Format:
|
48
|
-
- json
|
49
|
-
User-Agent:
|
50
|
-
- OAuth gem v0.4.5
|
51
|
-
Authorization:
|
52
|
-
- OAuth oauth_consumer_key="consumer_key", oauth_nonce="nonc", oauth_signature="signature",
|
53
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1319129844", oauth_token="token",
|
54
|
-
oauth_version="1.0"
|
55
|
-
response:
|
56
|
-
status:
|
57
|
-
code: 200
|
58
|
-
message: OK
|
59
|
-
headers:
|
60
|
-
Server:
|
61
|
-
- Apache-Coyote/1.1
|
62
|
-
Vary:
|
63
|
-
- ! '*'
|
64
|
-
X-Li-Format:
|
65
|
-
- json
|
66
|
-
Content-Type:
|
67
|
-
- application/json;charset=UTF-8
|
68
|
-
Transfer-Encoding:
|
69
|
-
- chunked
|
70
|
-
Date:
|
71
|
-
- Thu, 20 Oct 2011 16:57:24 GMT
|
72
|
-
body:
|
73
|
-
encoding: UTF-8
|
74
|
-
string: ! "{\n \"employeeCountRange\": {\n \"code\": \"I\",\n \"name\":
|
75
|
-
\"10001+\"\n },\n \"id\": 1586,\n \"industry\": \"Internet\",\n \"locations\":
|
76
|
-
{\n \"_total\": 1,\n \"values\": [{\n \"address\": {\n \"city\":
|
77
|
-
\"Seattle\",\n \"countryCode\": \"us\",\n \"state\": \"WA\"\n },\n
|
78
|
-
\ \"isHeadquarters\": true\n }]\n },\n \"name\": \"Amazon\"\n}"
|
79
|
-
http_version: '1.1'
|
80
|
-
recorded_at: Wed, 10 Apr 2013 22:06:51 GMT
|
81
|
-
recorded_with: VCR 2.5.0
|