linkedin 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.markdown +26 -24
- data/Rakefile +1 -0
- data/lib/linked_in/api/query_methods.rb +3 -3
- data/lib/linked_in/version.rb +1 -1
- data/linkedin.gemspec +7 -7
- data/spec/cases/api_spec.rb +6 -0
- data/spec/fixtures/cassette_library/LinkedIn_Api/Company_API.yml +50 -42
- data/spec/fixtures/cassette_library/LinkedIn_Client/_authorize_from_request.yml +31 -22
- data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token.yml +31 -22
- data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token/with_a_callback_url.yml +31 -22
- data/spec/fixtures/cassette_library/LinkedIn_Client/_request_token/with_default_options.yml +31 -22
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_company_name_option.yml +73 -89
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options.yml +80 -111
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options_with_fields.yml +92 -127
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_keywords_string_parameter.yml +43 -62
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option.yml +43 -62
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option_with_pagination.yml +35 -37
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_options_with_fields.yml +222 -25
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_string_parameter.yml +70 -146
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option.yml +70 -146
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_facets_to_return.yml +70 -146
- data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_pagination.yml +64 -126
- metadata +21 -57
data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option.yml
CHANGED
@@ -1,156 +1,80 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: https://api.linkedin.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
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:
|
9
11
|
- json
|
10
|
-
|
11
|
-
- OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="8HvACp7Bnl1RHEamMoOAgSExAIsa0ZmPg38voXltI",
|
12
|
-
|
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:
|
13
18
|
- OAuth gem v0.4.7
|
14
|
-
response:
|
15
|
-
status:
|
19
|
+
response:
|
20
|
+
status:
|
16
21
|
code: 200
|
17
22
|
message: OK
|
18
|
-
headers:
|
19
|
-
|
23
|
+
headers:
|
24
|
+
X-Li-Request-Id:
|
20
25
|
- XPJE34FJFO
|
21
|
-
|
26
|
+
X-Li-Format:
|
22
27
|
- json
|
23
|
-
|
28
|
+
Date:
|
24
29
|
- Wed, 10 Apr 2013 22:07:33 GMT
|
25
|
-
|
26
|
-
-
|
27
|
-
|
30
|
+
Vary:
|
31
|
+
- ! '*'
|
32
|
+
Server:
|
28
33
|
- Apache-Coyote/1.1
|
29
|
-
|
34
|
+
Content-Type:
|
30
35
|
- application/json;charset=UTF-8
|
31
|
-
|
36
|
+
Transfer-Encoding:
|
32
37
|
- chunked
|
33
|
-
body:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
{
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
{
|
77
|
-
"id": 1049054,
|
78
|
-
"name": "Apple Crumble"
|
79
|
-
}
|
80
|
-
]
|
81
|
-
},
|
82
|
-
"facets": {
|
83
|
-
"_total": 1,
|
84
|
-
"values": [{
|
85
|
-
"buckets": {
|
86
|
-
"_total": 10,
|
87
|
-
"values": [
|
88
|
-
{
|
89
|
-
"code": "us:0",
|
90
|
-
"count": 2511,
|
91
|
-
"name": "United States",
|
92
|
-
"selected": false
|
93
|
-
},
|
94
|
-
{
|
95
|
-
"code": "gb:0",
|
96
|
-
"count": 702,
|
97
|
-
"name": "United Kingdom",
|
98
|
-
"selected": false
|
99
|
-
},
|
100
|
-
{
|
101
|
-
"code": "us:84",
|
102
|
-
"count": 322,
|
103
|
-
"name": "San Francisco Bay Area",
|
104
|
-
"selected": false
|
105
|
-
},
|
106
|
-
{
|
107
|
-
"code": "us:70",
|
108
|
-
"count": 285,
|
109
|
-
"name": "Greater New York City Area",
|
110
|
-
"selected": false
|
111
|
-
},
|
112
|
-
{
|
113
|
-
"code": "nl:0",
|
114
|
-
"count": 284,
|
115
|
-
"name": "Netherlands",
|
116
|
-
"selected": false
|
117
|
-
},
|
118
|
-
{
|
119
|
-
"code": "ca:0",
|
120
|
-
"count": 266,
|
121
|
-
"name": "Canada",
|
122
|
-
"selected": false
|
123
|
-
},
|
124
|
-
{
|
125
|
-
"code": "au:0",
|
126
|
-
"count": 195,
|
127
|
-
"name": "Australia",
|
128
|
-
"selected": false
|
129
|
-
},
|
130
|
-
{
|
131
|
-
"code": "in:0",
|
132
|
-
"count": 186,
|
133
|
-
"name": "India",
|
134
|
-
"selected": false
|
135
|
-
},
|
136
|
-
{
|
137
|
-
"code": "it:0",
|
138
|
-
"count": 177,
|
139
|
-
"name": "Italy",
|
140
|
-
"selected": false
|
141
|
-
},
|
142
|
-
{
|
143
|
-
"code": "us:49",
|
144
|
-
"count": 173,
|
145
|
-
"name": "Greater Los Angeles Area",
|
146
|
-
"selected": false
|
147
|
-
}
|
148
|
-
]
|
149
|
-
},
|
150
|
-
"code": "location",
|
151
|
-
"name": "Location"
|
152
|
-
}]
|
153
|
-
},
|
154
|
-
"numResults": 8450
|
155
|
-
}
|
156
|
-
http_version: "1.1"
|
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
|
@@ -1,156 +1,80 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: https://api.linkedin.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.linkedin.com/v1/company-search?facets=industry&keywords=apple
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Li-Format:
|
9
11
|
- json
|
10
|
-
|
11
|
-
- OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="FU07WVy5LyepRG8O99eNUI0fqIxdghVO9gXhSQAOA",
|
12
|
-
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="FU07WVy5LyepRG8O99eNUI0fqIxdghVO9gXhSQAOA",
|
14
|
+
oauth_signature="51O%2BsP4hpjq93vwrFm2zrox0xfI%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:
|
13
18
|
- OAuth gem v0.4.7
|
14
|
-
response:
|
15
|
-
status:
|
19
|
+
response:
|
20
|
+
status:
|
16
21
|
code: 200
|
17
22
|
message: OK
|
18
|
-
headers:
|
19
|
-
|
23
|
+
headers:
|
24
|
+
X-Li-Request-Id:
|
20
25
|
- G21FIZ5M8V
|
21
|
-
|
26
|
+
X-Li-Format:
|
22
27
|
- json
|
23
|
-
|
28
|
+
Date:
|
24
29
|
- Wed, 10 Apr 2013 22:07:33 GMT
|
25
|
-
|
26
|
-
-
|
27
|
-
|
30
|
+
Vary:
|
31
|
+
- ! '*'
|
32
|
+
Server:
|
28
33
|
- Apache-Coyote/1.1
|
29
|
-
|
34
|
+
Content-Type:
|
30
35
|
- application/json;charset=UTF-8
|
31
|
-
|
36
|
+
Transfer-Encoding:
|
32
37
|
- chunked
|
33
|
-
body:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
{
|
77
|
-
"id": 1049054,
|
78
|
-
"name": "Apple Crumble"
|
79
|
-
}
|
80
|
-
]
|
81
|
-
},
|
82
|
-
"facets": {
|
83
|
-
"_total": 1,
|
84
|
-
"values": [{
|
85
|
-
"buckets": {
|
86
|
-
"_total": 10,
|
87
|
-
"values": [
|
88
|
-
{
|
89
|
-
"code": "96",
|
90
|
-
"count": 2062,
|
91
|
-
"name": "Information Technology and Services",
|
92
|
-
"selected": false
|
93
|
-
},
|
94
|
-
{
|
95
|
-
"code": "4",
|
96
|
-
"count": 1031,
|
97
|
-
"name": "Computer Software",
|
98
|
-
"selected": false
|
99
|
-
},
|
100
|
-
{
|
101
|
-
"code": "6",
|
102
|
-
"count": 472,
|
103
|
-
"name": "Internet",
|
104
|
-
"selected": false
|
105
|
-
},
|
106
|
-
{
|
107
|
-
"code": "3",
|
108
|
-
"count": 415,
|
109
|
-
"name": "Computer Hardware",
|
110
|
-
"selected": false
|
111
|
-
},
|
112
|
-
{
|
113
|
-
"code": "80",
|
114
|
-
"count": 348,
|
115
|
-
"name": "Marketing and Advertising",
|
116
|
-
"selected": false
|
117
|
-
},
|
118
|
-
{
|
119
|
-
"code": "24",
|
120
|
-
"count": 312,
|
121
|
-
"name": "Consumer Electronics",
|
122
|
-
"selected": false
|
123
|
-
},
|
124
|
-
{
|
125
|
-
"code": "27",
|
126
|
-
"count": 206,
|
127
|
-
"name": "Retail",
|
128
|
-
"selected": false
|
129
|
-
},
|
130
|
-
{
|
131
|
-
"code": "109",
|
132
|
-
"count": 185,
|
133
|
-
"name": "Computer Games",
|
134
|
-
"selected": false
|
135
|
-
},
|
136
|
-
{
|
137
|
-
"code": "8",
|
138
|
-
"count": 171,
|
139
|
-
"name": "Telecommunications",
|
140
|
-
"selected": false
|
141
|
-
},
|
142
|
-
{
|
143
|
-
"code": "126",
|
144
|
-
"count": 164,
|
145
|
-
"name": "Media Production",
|
146
|
-
"selected": false
|
147
|
-
}
|
148
|
-
]
|
149
|
-
},
|
150
|
-
"code": "industry",
|
151
|
-
"name": "Industry"
|
152
|
-
}]
|
153
|
-
},
|
154
|
-
"numResults": 8450
|
155
|
-
}
|
156
|
-
http_version: "1.1"
|
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
|
+
\"96\",\n \"count\": 2062,\n \"name\": \"Information
|
57
|
+
Technology and Services\",\n \"selected\": false\n },\n
|
58
|
+
\ {\n \"code\": \"4\",\n \"count\": 1031,\n
|
59
|
+
\ \"name\": \"Computer Software\",\n \"selected\": false\n
|
60
|
+
\ },\n {\n \"code\": \"6\",\n \"count\":
|
61
|
+
472,\n \"name\": \"Internet\",\n \"selected\": false\n
|
62
|
+
\ },\n {\n \"code\": \"3\",\n \"count\":
|
63
|
+
415,\n \"name\": \"Computer Hardware\",\n \"selected\":
|
64
|
+
false\n },\n {\n \"code\": \"80\",\n \"count\":
|
65
|
+
348,\n \"name\": \"Marketing and Advertising\",\n \"selected\":
|
66
|
+
false\n },\n {\n \"code\": \"24\",\n \"count\":
|
67
|
+
312,\n \"name\": \"Consumer Electronics\",\n \"selected\":
|
68
|
+
false\n },\n {\n \"code\": \"27\",\n \"count\":
|
69
|
+
206,\n \"name\": \"Retail\",\n \"selected\": false\n
|
70
|
+
\ },\n {\n \"code\": \"109\",\n \"count\":
|
71
|
+
185,\n \"name\": \"Computer Games\",\n \"selected\":
|
72
|
+
false\n },\n {\n \"code\": \"8\",\n \"count\":
|
73
|
+
171,\n \"name\": \"Telecommunications\",\n \"selected\":
|
74
|
+
false\n },\n {\n \"code\": \"126\",\n \"count\":
|
75
|
+
164,\n \"name\": \"Media Production\",\n \"selected\":
|
76
|
+
false\n }\n ]\n },\n \"code\": \"industry\",\n \"name\":
|
77
|
+
\"Industry\"\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
|