linkedin 0.3.7 → 0.4.0

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 (23) hide show
  1. data/README.markdown +1 -1
  2. data/changelog.markdown +15 -0
  3. data/lib/linked_in/api/query_methods.rb +15 -0
  4. data/lib/linked_in/api/update_methods.rb +16 -4
  5. data/lib/linked_in/helpers/authorization.rb +4 -3
  6. data/lib/linked_in/version.rb +2 -2
  7. data/linkedin.gemspec +2 -2
  8. data/spec/cases/api_spec.rb +49 -4
  9. data/spec/cases/oauth_spec.rb +13 -0
  10. data/spec/cases/search_spec.rb +35 -37
  11. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_company_name_option.yml +98 -124
  12. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options.yml +120 -111
  13. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_first_name_and_last_name_options_with_fields.yml +137 -62
  14. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_keywords_string_parameter.yml +64 -128
  15. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option.yml +64 -128
  16. data/spec/fixtures/cassette_library/LinkedIn_Search/_search/by_single_keywords_option_with_pagination.yml +39 -120
  17. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_options_with_fields.yml +26 -243
  18. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_keywords_string_parameter.yml +147 -64
  19. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option.yml +147 -62
  20. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_facets_to_return.yml +147 -62
  21. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_pagination.yml +127 -57
  22. metadata +81 -28
  23. data/spec/fixtures/cassette_library/LinkedIn_Search/_search_company/by_single_keywords_option_with_a_facet.yml +0 -111
@@ -1,71 +1,156 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :get
5
5
  uri: https://api.linkedin.com:443/v1/company-search?keywords=apple
6
6
  body:
7
- headers:
8
- x-li-format:
7
+ headers:
8
+ x-li-format:
9
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
10
+ authorization:
11
+ - OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="8HvACp7Bnl1RHEamMoOAgSExAIsa0ZmPg38voXltI", oauth_signature="vU6TKCCBvu783h%2B0diQLZkcBKb8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1365631653", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089", oauth_version="1.0"
12
+ user-agent:
13
+ - OAuth gem v0.4.7
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
19
16
  code: 200
20
17
  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:
18
+ headers:
19
+ x-li-request-id:
20
+ - XPJE34FJFO
21
+ x-li-format:
29
22
  - json
30
- content-type:
23
+ date:
24
+ - Wed, 10 Apr 2013 22:07:33 GMT
25
+ vary:
26
+ - "*"
27
+ server:
28
+ - Apache-Coyote/1.1
29
+ content-type:
31
30
  - application/json;charset=UTF-8
32
- transfer-encoding:
31
+ transfer-encoding:
33
32
  - 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'
33
+ body: |-
34
+ {
35
+ "companies": {
36
+ "_count": 10,
37
+ "_start": 0,
38
+ "_total": 8450,
39
+ "values": [
40
+ {
41
+ "id": 162479,
42
+ "name": "Apple"
43
+ },
44
+ {
45
+ "id": 19271,
46
+ "name": "Apple Vacations"
47
+ },
48
+ {
49
+ "id": 778626,
50
+ "name": "Big Apple Holdings, Inc. dba Big Apple International Realty"
51
+ },
52
+ {
53
+ "id": 112136,
54
+ "name": "Apple & Associates"
55
+ },
56
+ {
57
+ "id": 772044,
58
+ "name": "Stone Apple Solutions"
59
+ },
60
+ {
61
+ "id": 2135525,
62
+ "name": "iSquare - Apple Authorized Distributor in Greece & Cyprus"
63
+ },
64
+ {
65
+ "id": 2303504,
66
+ "name": "Filex Apple Store & Support"
67
+ },
68
+ {
69
+ "id": 2419290,
70
+ "name": "Apple Nieuws Vlaanderen"
71
+ },
72
+ {
73
+ "id": 2260437,
74
+ "name": "OGGO - Services Apple Macintosh"
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"
@@ -1,71 +1,156 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :get
5
5
  uri: https://api.linkedin.com:443/v1/company-search?facets=industry&keywords=apple
6
6
  body:
7
- headers:
8
- x-li-format:
7
+ headers:
8
+ x-li-format:
9
9
  - json
10
- user-agent:
11
- - OAuth gem v0.4.5
12
- authorization:
13
- - OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="WNtBym5LDMHmF1yNiZA8ypTi6Ae5yZFgfWeyYjVK0E8",
14
- oauth_signature="x2Mh3MmxuXDz2sBMnlqNsXIub5I%3D", oauth_signature_method="HMAC-SHA1",
15
- oauth_timestamp="1329991802", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
16
- oauth_version="1.0"
17
- response: !ruby/struct:VCR::Response
18
- status: !ruby/struct:VCR::ResponseStatus
10
+ authorization:
11
+ - OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="FU07WVy5LyepRG8O99eNUI0fqIxdghVO9gXhSQAOA", oauth_signature="51O%2BsP4hpjq93vwrFm2zrox0xfI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1365631653", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089", oauth_version="1.0"
12
+ user-agent:
13
+ - OAuth gem v0.4.7
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
19
16
  code: 200
20
17
  message: OK
21
- headers:
22
- server:
23
- - Apache-Coyote/1.1
24
- x-li-request-id:
25
- - 4MRGJTY83T
26
- vary:
27
- - ! '*'
28
- x-li-format:
18
+ headers:
19
+ x-li-request-id:
20
+ - G21FIZ5M8V
21
+ x-li-format:
29
22
  - json
30
- content-type:
23
+ date:
24
+ - Wed, 10 Apr 2013 22:07:33 GMT
25
+ vary:
26
+ - "*"
27
+ server:
28
+ - Apache-Coyote/1.1
29
+ content-type:
31
30
  - application/json;charset=UTF-8
32
- transfer-encoding:
31
+ transfer-encoding:
33
32
  - chunked
34
- date:
35
- - Thu, 23 Feb 2012 10:10:03 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\": \"96\",\n \"count\": 1386,\n \"name\":
50
- \"Information Technology and Services\",\n \"selected\": false\n
51
- \ },\n {\n \"code\": \"4\",\n \"count\":
52
- 732,\n \"name\": \"Computer Software\",\n \"selected\":
53
- false\n },\n {\n \"code\": \"3\",\n \"count\":
54
- 313,\n \"name\": \"Computer Hardware\",\n \"selected\":
55
- false\n },\n {\n \"code\": \"6\",\n \"count\":
56
- 295,\n \"name\": \"Internet\",\n \"selected\": false\n
57
- \ },\n {\n \"code\": \"80\",\n \"count\":
58
- 219,\n \"name\": \"Marketing and Advertising\",\n \"selected\":
59
- false\n },\n {\n \"code\": \"24\",\n \"count\":
60
- 166,\n \"name\": \"Consumer Electronics\",\n \"selected\":
61
- false\n },\n {\n \"code\": \"27\",\n \"count\":
62
- 142,\n \"name\": \"Retail\",\n \"selected\": false\n },\n
63
- \ {\n \"code\": \"109\",\n \"count\": 123,\n \"name\":
64
- \"Computer Games\",\n \"selected\": false\n },\n {\n
65
- \ \"code\": \"126\",\n \"count\": 120,\n \"name\":
66
- \"Media Production\",\n \"selected\": false\n },\n {\n
67
- \ \"code\": \"99\",\n \"count\": 117,\n \"name\":
68
- \"Design\",\n \"selected\": false\n }\n ]\n },\n
69
- \ \"code\": \"industry\",\n \"name\": \"Industry\"\n }]\n },\n
70
- \ \"numResults\": 5696\n}"
71
- http_version: '1.1'
33
+ body: |-
34
+ {
35
+ "companies": {
36
+ "_count": 10,
37
+ "_start": 0,
38
+ "_total": 8450,
39
+ "values": [
40
+ {
41
+ "id": 162479,
42
+ "name": "Apple"
43
+ },
44
+ {
45
+ "id": 19271,
46
+ "name": "Apple Vacations"
47
+ },
48
+ {
49
+ "id": 778626,
50
+ "name": "Big Apple Holdings, Inc. dba Big Apple International Realty"
51
+ },
52
+ {
53
+ "id": 112136,
54
+ "name": "Apple & Associates"
55
+ },
56
+ {
57
+ "id": 772044,
58
+ "name": "Stone Apple Solutions"
59
+ },
60
+ {
61
+ "id": 2135525,
62
+ "name": "iSquare - Apple Authorized Distributor in Greece & Cyprus"
63
+ },
64
+ {
65
+ "id": 2303504,
66
+ "name": "Filex Apple Store & Support"
67
+ },
68
+ {
69
+ "id": 2419290,
70
+ "name": "Apple Nieuws Vlaanderen"
71
+ },
72
+ {
73
+ "id": 2260437,
74
+ "name": "OGGO - Services Apple Macintosh"
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"
@@ -1,66 +1,136 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :get
5
5
  uri: https://api.linkedin.com:443/v1/company-search?count=5&keywords=apple&start=5
6
6
  body:
7
- headers:
8
- x-li-format:
7
+ headers:
8
+ x-li-format:
9
9
  - json
10
- user-agent:
11
- - OAuth gem v0.4.5
12
- authorization:
13
- - OAuth oauth_consumer_key="n22cs9eyo36s", oauth_nonce="ijlM2rk0lIDFQSvHgwegzYK3BlzbB4bywFyygdPsJA",
14
- oauth_signature="roxP%2BA3I%2F8PlBub%2B%2BqSF%2FBp3EqU%3D", oauth_signature_method="HMAC-SHA1",
15
- oauth_timestamp="1329992230", oauth_token="a39e395e-bc38-4d5b-ae3b-52f840f821e9",
16
- oauth_version="1.0"
17
- response: !ruby/struct:VCR::Response
18
- status: !ruby/struct:VCR::ResponseStatus
10
+ authorization:
11
+ - OAuth oauth_consumer_key="mpibxdpwbwry", oauth_nonce="UCRIU2SBembgaUTMw9aBAK0tCDnDuxPG4GzClCmcVQ", oauth_signature="46tFOgfxDKiVNID1XIHrpoAs7zA%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1365631654", oauth_token="d9f69cd6-f3f3-4c26-9f2c-12cd8e228089", oauth_version="1.0"
12
+ user-agent:
13
+ - OAuth gem v0.4.7
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
19
16
  code: 200
20
17
  message: OK
21
- headers:
22
- server:
23
- - Apache-Coyote/1.1
24
- x-li-request-id:
25
- - 7Y7WOBATID
26
- vary:
27
- - ! '*'
28
- x-li-format:
18
+ headers:
19
+ x-li-request-id:
20
+ - YMZX3QW2A1
21
+ x-li-format:
29
22
  - json
30
- content-type:
23
+ date:
24
+ - Wed, 10 Apr 2013 22:07:33 GMT
25
+ vary:
26
+ - "*"
27
+ server:
28
+ - Apache-Coyote/1.1
29
+ content-type:
31
30
  - application/json;charset=UTF-8
32
- transfer-encoding:
31
+ transfer-encoding:
33
32
  - chunked
34
- date:
35
- - Thu, 23 Feb 2012 10:17:13 GMT
36
- body: ! "{\n \"companies\": {\n \"_count\": 5,\n \"_start\": 5,\n \"_total\":
37
- 5696,\n \"values\": [\n {\n \"id\": 19271,\n \"name\":
38
- \"Apple Vacations\"\n },\n {\n \"id\": 163801,\n \"name\":
39
- \"FileMaker\"\n },\n {\n \"id\": 21482,\n \"name\":
40
- \"GHA Technologies\"\n },\n {\n \"id\": 112136,\n \"name\":
41
- \"Apple & Associates\"\n },\n {\n \"id\": 15552,\n \"name\":
42
- \"Micro Center\"\n }\n ]\n },\n \"facets\": {\n \"_total\": 1,\n
43
- \ \"values\": [{\n \"buckets\": {\n \"_total\": 10,\n \"values\":
44
- [\n {\n \"code\": \"us:0\",\n \"count\": 1836,\n
45
- \ \"name\": \"United States\",\n \"selected\": false\n
46
- \ },\n {\n \"code\": \"gb:0\",\n \"count\":
47
- 491,\n \"name\": \"United Kingdom\",\n \"selected\": false\n
48
- \ },\n {\n \"code\": \"us:84\",\n \"count\":
49
- 237,\n \"name\": \"San Francisco Bay Area\",\n \"selected\":
50
- false\n },\n {\n \"code\": \"nl:0\",\n \"count\":
51
- 227,\n \"name\": \"Netherlands\",\n \"selected\": false\n
52
- \ },\n {\n \"code\": \"us:70\",\n \"count\":
53
- 208,\n \"name\": \"Greater New York City Area\",\n \"selected\":
54
- false\n },\n {\n \"code\": \"ca:0\",\n \"count\":
55
- 199,\n \"name\": \"Canada\",\n \"selected\": false\n },\n
56
- \ {\n \"code\": \"au:0\",\n \"count\": 130,\n
57
- \ \"name\": \"Australia\",\n \"selected\": false\n },\n
58
- \ {\n \"code\": \"us:49\",\n \"count\": 130,\n
59
- \ \"name\": \"Greater Los Angeles Area\",\n \"selected\":
60
- false\n },\n {\n \"code\": \"in:0\",\n \"count\":
61
- 121,\n \"name\": \"India\",\n \"selected\": false\n },\n
62
- \ {\n \"code\": \"it:0\",\n \"count\": 121,\n
63
- \ \"name\": \"Italy\",\n \"selected\": false\n }\n
64
- \ ]\n },\n \"code\": \"location\",\n \"name\": \"Location\"\n
65
- \ }]\n },\n \"numResults\": 5696\n}"
66
- http_version: '1.1'
33
+ body: |-
34
+ {
35
+ "companies": {
36
+ "_count": 5,
37
+ "_start": 5,
38
+ "_total": 8450,
39
+ "values": [
40
+ {
41
+ "id": 2135525,
42
+ "name": "iSquare - Apple Authorized Distributor in Greece & Cyprus"
43
+ },
44
+ {
45
+ "id": 2303504,
46
+ "name": "Filex Apple Store & Support"
47
+ },
48
+ {
49
+ "id": 2419290,
50
+ "name": "Apple Nieuws Vlaanderen"
51
+ },
52
+ {
53
+ "id": 2260437,
54
+ "name": "OGGO - Services Apple Macintosh"
55
+ },
56
+ {
57
+ "id": 1049054,
58
+ "name": "Apple Crumble"
59
+ }
60
+ ]
61
+ },
62
+ "facets": {
63
+ "_total": 1,
64
+ "values": [{
65
+ "buckets": {
66
+ "_total": 10,
67
+ "values": [
68
+ {
69
+ "code": "us:0",
70
+ "count": 2511,
71
+ "name": "United States",
72
+ "selected": false
73
+ },
74
+ {
75
+ "code": "gb:0",
76
+ "count": 702,
77
+ "name": "United Kingdom",
78
+ "selected": false
79
+ },
80
+ {
81
+ "code": "us:84",
82
+ "count": 322,
83
+ "name": "San Francisco Bay Area",
84
+ "selected": false
85
+ },
86
+ {
87
+ "code": "us:70",
88
+ "count": 285,
89
+ "name": "Greater New York City Area",
90
+ "selected": false
91
+ },
92
+ {
93
+ "code": "nl:0",
94
+ "count": 284,
95
+ "name": "Netherlands",
96
+ "selected": false
97
+ },
98
+ {
99
+ "code": "ca:0",
100
+ "count": 266,
101
+ "name": "Canada",
102
+ "selected": false
103
+ },
104
+ {
105
+ "code": "au:0",
106
+ "count": 195,
107
+ "name": "Australia",
108
+ "selected": false
109
+ },
110
+ {
111
+ "code": "in:0",
112
+ "count": 186,
113
+ "name": "India",
114
+ "selected": false
115
+ },
116
+ {
117
+ "code": "it:0",
118
+ "count": 177,
119
+ "name": "Italy",
120
+ "selected": false
121
+ },
122
+ {
123
+ "code": "us:49",
124
+ "count": 173,
125
+ "name": "Greater Los Angeles Area",
126
+ "selected": false
127
+ }
128
+ ]
129
+ },
130
+ "code": "location",
131
+ "name": "Location"
132
+ }]
133
+ },
134
+ "numResults": 8450
135
+ }
136
+ http_version: "1.1"