netprospex-ruby 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +4 -0
- data/fixtures/cassettes/acl-error.yml +45 -0
- data/fixtures/cassettes/auth-error.yml +45 -0
- data/fixtures/cassettes/incomplete-organization.yml +55 -0
- data/fixtures/cassettes/incomplete-person.yml +52 -0
- data/fixtures/cassettes/industries.yml +136 -0
- data/fixtures/cassettes/pag-error.yml +45 -0
- data/fixtures/cassettes/person-by-email.yml +55 -0
- data/fixtures/cassettes/person-by-id.yml +55 -0
- data/fixtures/cassettes/person-list.yml +619 -0
- data/fixtures/cassettes/req-error.yml +45 -0
- data/lib/netprospex.rb +8 -0
- data/lib/netprospex/api/address.rb +9 -0
- data/lib/netprospex/api/organization.rb +10 -0
- data/lib/netprospex/api/person.rb +10 -0
- data/lib/netprospex/api/phone.rb +9 -0
- data/lib/netprospex/api/sub_objects.rb +52 -0
- data/lib/netprospex/client.rb +53 -0
- data/lib/netprospex/configuration.rb +28 -0
- data/lib/netprospex/exceptions.rb +13 -0
- data/lib/netprospex/helpers/formatters.rb +67 -0
- data/lib/netprospex/middleware/raise_exceptions.rb +34 -0
- data/lib/netprospex/middleware/rubyize.rb +16 -0
- data/lib/netprospex/query_methods.rb +41 -0
- data/lib/netprospex/version.rb +3 -0
- data/netprospex.gemspec +31 -0
- data/spec/netprospex/api/organization_spec.rb +51 -0
- data/spec/netprospex/api/person_spec.rb +45 -0
- data/spec/netprospex/client_spec.rb +34 -0
- data/spec/netprospex/configuration_spec.rb +21 -0
- data/spec/netprospex/helpers/formatters_spec.rb +78 -0
- data/spec/netprospex/middleware/raise_exceptions_spec.rb +92 -0
- data/spec/netprospex/query_methods_spec.rb +68 -0
- data/spec/netprospex_spec.rb +5 -0
- data/spec/spec_helper.rb +7 -0
- data/spec/vcr_helper.rb +12 -0
- metadata +236 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 59ea8db30c4024d5debf6e29a93449455d88995d
|
4
|
+
data.tar.gz: de5f14711be796ccd06e6517673f2c80d45bd93f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8f0ce13feb5107a95e2269a34202143fb1fa55594f07f3e4ddd2875489e2291dc136da02f42330985995fed2497edba8f52cf476679abbd4ce134efc9a65a781
|
7
|
+
data.tar.gz: 4f98cd6c24058915e71ecb5434e1d1da40145ea72e276ba62d1db3f4760a7e256c29b0d22dd43ae6ff47117619a2ea7eb529bf972fca1905e303fb853e7439f4
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 DeltaWhy
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Netprospex
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'netprospex'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install netprospex
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.netprospex.com/1.1/prospect/profile.json?organizationName=Pardot
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_consumer_key="<NETPROSPEX_KEY>", oauth_nonce="ba78f617aac083a3e6db2b250c87edea",
|
14
|
+
oauth_signature="WH32Pen5ZuFTYpjkS6b%2BrN%2B7s6s%3D", oauth_signature_method="HMAC-SHA1",
|
15
|
+
oauth_timestamp="1366301187", oauth_token="<NETPROSPEX_USER_TOKEN>", oauth_version="1.0"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- ! '*/*'
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Thu, 18 Apr 2013 16:06:28 GMT
|
27
|
+
Server:
|
28
|
+
- Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips DAV/2 mod_wsgi/3.3
|
29
|
+
Python/2.7.2 PHP/5.3.10
|
30
|
+
X-Powered-By:
|
31
|
+
- PHP/5.3.10
|
32
|
+
Connection:
|
33
|
+
- close
|
34
|
+
Content-Length:
|
35
|
+
- '577'
|
36
|
+
Content-Type:
|
37
|
+
- application/json
|
38
|
+
body:
|
39
|
+
encoding: US-ASCII
|
40
|
+
string: ! '{"response":{"version":"1.1","responseId":"AC60EAD4-5985-272B-BFD6-1264D7F925CD","responseType":"error","request":{"startTime":"2013-04-18
|
41
|
+
12:06:28","requestType":"prospect_profile","url":"\/1.1\/prospect\/profile.json?organizationName=Pardot","userId":"d5c72b79-a2ed-11e2-8c42-00259059ba92"},"transaction":{"accountId":"d5c51e5f-a2ed-11e2-8c42-00259059ba92","accountStartBalance":7120,"accountEndBalance":7120},"error":{"message":"invalid
|
42
|
+
access for userId=d5c72b79-a2ed-11e2-8c42-00259059ba92 and call=prospect_profile","code":"ACL"},"debug":{"requestTime":0.0191609859467}}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Thu, 18 Apr 2013 16:06:28 GMT
|
45
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.netprospex.com/1.1/industries.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_consumer_key="<NETPROSPEX_KEY>", oauth_nonce="bd8ee1cf960dd03755bac6ccb675b943",
|
14
|
+
oauth_signature="VlPqW3NoDFfyrp7xwJTLeQ5zXcs%3D", oauth_signature_method="HMAC-SHA1",
|
15
|
+
oauth_timestamp="1366301817", oauth_token="bad", oauth_version="1.0"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- ! '*/*'
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Thu, 18 Apr 2013 16:16:58 GMT
|
27
|
+
Server:
|
28
|
+
- Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips DAV/2 mod_wsgi/3.3
|
29
|
+
Python/2.7.2 PHP/5.3.10
|
30
|
+
X-Powered-By:
|
31
|
+
- PHP/5.3.10
|
32
|
+
Connection:
|
33
|
+
- close
|
34
|
+
Content-Length:
|
35
|
+
- '411'
|
36
|
+
Content-Type:
|
37
|
+
- application/json
|
38
|
+
body:
|
39
|
+
encoding: US-ASCII
|
40
|
+
string: ! '{"response":{"version":"1.1","responseId":"CADF5480-F4D4-8684-9A63-104D7F7EA2E2","responseType":"error","request":{"startTime":"2013-04-18
|
41
|
+
12:16:58","requestType":"industries","url":"\/1.1\/industries.json","userId":null},"transaction":{"accountId":null,"accountStartBalance":null,"accountEndBalance":null},"error":{"message":"Invalid
|
42
|
+
access token: bad","code":"AUTH"},"debug":{"requestTime":0.00708293914795}}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Thu, 18 Apr 2013 16:16:58 GMT
|
45
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.netprospex.com/1.1/person/profile.json?personId=85652828
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_consumer_key="<NETPROSPEX_KEY>", oauth_nonce="daa6633b34ee1e45c990415f978ea5e4",
|
14
|
+
oauth_signature="UJYmVaTpeNj32cdkwXe7ZN7Luxc%3D", oauth_signature_method="HMAC-SHA1",
|
15
|
+
oauth_timestamp="1366401130", oauth_token="<NETPROSPEX_USER_TOKEN>", oauth_version="1.0"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- ! '*/*'
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Fri, 19 Apr 2013 19:52:11 GMT
|
27
|
+
Server:
|
28
|
+
- Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips DAV/2 mod_wsgi/3.3
|
29
|
+
Python/2.7.2 PHP/5.3.10
|
30
|
+
X-Powered-By:
|
31
|
+
- PHP/5.3.10
|
32
|
+
Connection:
|
33
|
+
- close
|
34
|
+
Content-Length:
|
35
|
+
- '1772'
|
36
|
+
Content-Type:
|
37
|
+
- application/json
|
38
|
+
body:
|
39
|
+
encoding: US-ASCII
|
40
|
+
string: ! '{"response":{"version":"1.1","responseId":"DDBF94A4-F422-44D9-53F7-E1F2ACE56FA1","responseType":"person_profile","request":{"startTime":"2013-04-19
|
41
|
+
15:52:11","requestType":"person_profile","url":"\/1.1\/person\/profile.json?personId=85652828","userId":"d5c72b79-a2ed-11e2-8c42-00259059ba92"},"transaction":{"accountId":"d5c51e5f-a2ed-11e2-8c42-00259059ba92","accountStartBalance":7018,"accountEndBalance":7017},"person_profile":{"preview":0,"count":1,"person":{"personId":85652828,"accuracyRating":{"phoneAccuracy":65},"prefix":"","firstName":"Reena","lastName":"Parekh","suffix":"","title":"Marketing
|
42
|
+
Program Senior Coordinator","hierarchytitle":["MGR"],"functions":["Manager","General
|
43
|
+
Marketing"],"email":"reena.shukla@pardot.com","phones":[{"label":"directPhone","countryCallingCode":1,"nationalNumber":"2899830965","formattedNumber":"1
|
44
|
+
(289) 983-0965","extra":""},{"label":"mainOfficePhone","countryCallingCode":1,"nationalNumber":"4044926845","formattedNumber":"1
|
45
|
+
(404) 492-6845","extra":""}],"postalAddress":{"formattedAddress":"950 E Paces
|
46
|
+
Ferry Rdsuite 2440 Fl 24 Atlanta, GA 30326","address":"950 E Paces Ferry Rdsuite
|
47
|
+
2440 Fl 24","address2":null,"city":"Atlanta","state":"GA","postalCode":"30326","country":"United
|
48
|
+
States"},"organization":{"organizationId":2098405,"organizationName":"Pardot","postalAddress":{"formattedAddress":"","address":"","address2":"","city":"","state":"","postalCode":"","country":"United
|
49
|
+
States"},"phones":[{"label":"organizationPhone","countryCallingCode":null,"nationalNumber":"","formattedNumber":"
|
50
|
+
() -","extra":""}],"domains":{"domain":{"url":"http:\/\/www.pardot.com"}},"industries":{"108":"Packaged
|
51
|
+
Software"},"revenueRange":"Less than $1 mil","employeeCountRange":"25 to less
|
52
|
+
than 100"}}},"debug":{"requestTime":0.10311794281}}}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Fri, 19 Apr 2013 19:52:11 GMT
|
55
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.netprospex.com/1.1/person/list.json?limit=1&organizationName=Pardot&preview=1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_consumer_key="<NETPROSPEX_KEY>", oauth_nonce="9424c1f0efdecffbe7ff6c9c8f7f876e",
|
14
|
+
oauth_signature="Y614LBzJ6Y5E87YJ%2B99yxy%2FvLH4%3D", oauth_signature_method="HMAC-SHA1",
|
15
|
+
oauth_timestamp="1366401877", oauth_token="<NETPROSPEX_USER_TOKEN>", oauth_version="1.0"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- ! '*/*'
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Fri, 19 Apr 2013 20:04:38 GMT
|
27
|
+
Server:
|
28
|
+
- Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips DAV/2 mod_wsgi/3.3
|
29
|
+
Python/2.7.2 PHP/5.3.10
|
30
|
+
X-Powered-By:
|
31
|
+
- PHP/5.3.10
|
32
|
+
Connection:
|
33
|
+
- close
|
34
|
+
Content-Length:
|
35
|
+
- '1443'
|
36
|
+
Content-Type:
|
37
|
+
- application/json
|
38
|
+
body:
|
39
|
+
encoding: US-ASCII
|
40
|
+
string: ! '{"response":{"version":"1.1","responseId":"62B1728D-E780-6669-6F3C-3A0329F2BD4A","responseType":"person_list","request":{"startTime":"2013-04-19
|
41
|
+
16:04:38","requestType":"person_list","url":"\/1.1\/person\/list.json?organizationName=Pardot&preview=1&limit=1","userId":"d5c72b79-a2ed-11e2-8c42-00259059ba92"},"transaction":{"accountId":"d5c51e5f-a2ed-11e2-8c42-00259059ba92","accountStartBalance":7017,"accountEndBalance":7017},"person_list":{"preview":1,"count":1,"limit":1,"offset":0,"calcFoundRows":1,"foundRows":60,"persons":[{"personId":85652828,"accuracyRating":{"phoneAccuracy":65},"prefix":"","firstName":"Reena","lastName":"Parekh","suffix":"","title":"Marketing
|
42
|
+
Program Senior Coordinator","hierarchytitle":["MGR"],"functions":["Manager","General
|
43
|
+
Marketing"],"email":"","phones":[],"postalAddress":{"formattedAddress":"950
|
44
|
+
E Paces Ferry Rdsuite 2440 Fl 24 Atlanta, GA 30326","address":"950 E Paces
|
45
|
+
Ferry Rdsuite 2440 Fl 24","address2":null,"city":"Atlanta","state":"GA","postalCode":"30326","country":"United
|
46
|
+
States"},"organization":{"organizationId":2098405,"organizationName":"Pardot","postalAddress":{"formattedAddress":"","address":"","address2":"","city":"","state":"","postalCode":"","country":"United
|
47
|
+
States"},"domains":{"domain":{"url":"http:\/\/www.pardot.com"}},"industries":{"108":"Packaged
|
48
|
+
Software"},"revenueRange":"Less than $1 mil","employeeCountRange":"25 to less
|
49
|
+
than 100"}}]},"debug":{"requestTime":0.0959680080414}}}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Fri, 19 Apr 2013 20:04:38 GMT
|
52
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,136 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.netprospex.com/1.1/industries.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_consumer_key="<NETPROSPEX_KEY>", oauth_nonce="e2f78d2a1b3a6fecf08199d2947a6e4b",
|
14
|
+
oauth_signature="EIDTMR0T2Sv3dvAY9C%2BWpEBlD5k%3D", oauth_signature_method="HMAC-SHA1",
|
15
|
+
oauth_timestamp="1366216725", oauth_token="<NETPROSPEX_USER_TOKEN>", oauth_version="1.0"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- ! '*/*'
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Wed, 17 Apr 2013 16:38:45 GMT
|
27
|
+
Server:
|
28
|
+
- Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips DAV/2 mod_wsgi/3.3
|
29
|
+
Python/2.7.2 PHP/5.3.10
|
30
|
+
X-Powered-By:
|
31
|
+
- PHP/5.3.10
|
32
|
+
Connection:
|
33
|
+
- close
|
34
|
+
Content-Length:
|
35
|
+
- '11071'
|
36
|
+
Content-Type:
|
37
|
+
- application/json
|
38
|
+
body:
|
39
|
+
encoding: US-ASCII
|
40
|
+
string: ! '{"response":{"version":"1.1","responseId":"E2736CB6-1E6A-98E8-F138-F94C70E2D3FD","responseType":"industries","request":{"startTime":"2013-04-17
|
41
|
+
12:38:45","requestType":"industries","url":"\/1.1\/industries.json","userId":"d5c72b79-a2ed-11e2-8c42-00259059ba92"},"transaction":{"accountId":"d5c51e5f-a2ed-11e2-8c42-00259059ba92","accountStartBalance":7493,"accountEndBalance":7493},"industries":{"preview":0,"count":13,"limit":0,"offset":0,"calcFoundRows":null,"foundRows":13,"data":{"61":{"id":"61","name":"Agriculture","parent_id":null,"sub_industries":[{"id":"62","name":"Animals
|
42
|
+
& Livestock","parent_id":"61"},{"id":"131","name":"Crops","parent_id":"61"}]},"63":{"id":"63","name":"Business
|
43
|
+
Services","parent_id":null,"sub_industries":[{"id":"64","name":"Human Resources
|
44
|
+
& Staffing","parent_id":"63"},{"id":"78","name":"Information & Document Management","parent_id":"63"},{"id":"89","name":"Management
|
45
|
+
Consulting","parent_id":"63"},{"id":"100","name":"Multimedia & Graphic Design","parent_id":"63"},{"id":"113","name":"Security
|
46
|
+
Products & Services","parent_id":"63"},{"id":"125","name":"Translation & Linguistic
|
47
|
+
Services","parent_id":"63"},{"id":"143","name":"Accounting & Accounting Services","parent_id":"63"},{"id":"146","name":"Training","parent_id":"63"},{"id":"155","name":"Advertising
|
48
|
+
& Marketing","parent_id":"63"},{"id":"166","name":"Auctions","parent_id":"63"},{"id":"178","name":"Law
|
49
|
+
Firms & Legal Services","parent_id":"63"},{"id":"179","name":"Call Centers
|
50
|
+
& Business Centers","parent_id":"63"},{"id":"192","name":"Commercial Printing","parent_id":"63"},{"id":"205","name":"Debt
|
51
|
+
Collection","parent_id":"63"},{"id":"218","name":"Facilities Mgmt & Commercial
|
52
|
+
Cleaning","parent_id":"63"},{"id":"244","name":"Consulting","parent_id":"63"},{"id":"245","name":"Engineering","parent_id":"63"},{"id":"246","name":"Franchises,
|
53
|
+
Selling, or Licensing","parent_id":"63"},{"id":"247","name":"Other","parent_id":"63"},{"id":"248","name":"Research","parent_id":"63"}]},"65":{"id":"65","name":"Manufacturing","parent_id":null,"sub_industries":[{"id":"66","name":"Toys
|
54
|
+
& Games","parent_id":"65"},{"id":"67","name":"Wire & Cable","parent_id":"65"},{"id":"180","name":"Aerospace
|
55
|
+
& Defense","parent_id":"65"},{"id":"181","name":"Automobiles","parent_id":"65"},{"id":"182","name":"Boats
|
56
|
+
& Submarines","parent_id":"65"},{"id":"184","name":"Aggregates, Concrete &
|
57
|
+
Cement","parent_id":"65"},{"id":"185","name":"Lumber & Wood Production","parent_id":"65"},{"id":"186","name":"Miscellaneous
|
58
|
+
Building Materials","parent_id":"65"},{"id":"187","name":"Plumbing & HVAC
|
59
|
+
Equipment","parent_id":"65"},{"id":"189","name":"Chemicals","parent_id":"65"},{"id":"190","name":"Gases","parent_id":"65"},{"id":"191","name":"Glass
|
60
|
+
& Clay","parent_id":"65"},{"id":"193","name":"Petrochemicals","parent_id":"65"},{"id":"195","name":"Computer
|
61
|
+
Networking Equipment","parent_id":"65"},{"id":"196","name":"Computer Storage
|
62
|
+
Equipment","parent_id":"65"},{"id":"197","name":"Computer Network Security","parent_id":"65"},{"id":"198","name":"Personal
|
63
|
+
Computers & Peripherals","parent_id":"65"},{"id":"200","name":"Consumer Appliances","parent_id":"65"},{"id":"201","name":"Cleaning
|
64
|
+
Products","parent_id":"65"},{"id":"202","name":"Consumer Electronics","parent_id":"65"},{"id":"203","name":"Cosmetics
|
65
|
+
& Personal Care Products","parent_id":"65"},{"id":"204","name":"Household
|
66
|
+
Goods","parent_id":"65"},{"id":"206","name":"Jewelry & Watches","parent_id":"65"},{"id":"207","name":"Pet
|
67
|
+
Products","parent_id":"65"},{"id":"208","name":"Photographic & Optical Equipment","parent_id":"65"},{"id":"209","name":"Sporting
|
68
|
+
Goods","parent_id":"65"},{"id":"210","name":"Textiles & Apparel","parent_id":"65"},{"id":"212","name":"Batteries,
|
69
|
+
Power Storage & Generators","parent_id":"65"},{"id":"213","name":"Electronic
|
70
|
+
Components","parent_id":"65"},{"id":"214","name":"Power Conversion & Protection
|
71
|
+
Equipment","parent_id":"65"},{"id":"215","name":"Semiconductor & Equipment","parent_id":"65"},{"id":"217","name":"Food
|
72
|
+
& Beverages","parent_id":"65"},{"id":"219","name":"Tobacco","parent_id":"65"},{"id":"220","name":"Wineries
|
73
|
+
& Breweries","parent_id":"65"},{"id":"221","name":"Furniture","parent_id":"65"},{"id":"222","name":"Industrial
|
74
|
+
Machinery & Equipment","parent_id":"65"},{"id":"223","name":"Plastic, Packaging
|
75
|
+
& Containers","parent_id":"65"},{"id":"224","name":"Pulp & Paper","parent_id":"65"},{"id":"225","name":"Telecommunication
|
76
|
+
Equipment","parent_id":"65"},{"id":"226","name":"Test & Measurement Equipment","parent_id":"65"},{"id":"227","name":"Tire
|
77
|
+
& Rubber","parent_id":"65"}]},"68":{"id":"68","name":"Media & Internet","parent_id":null,"sub_industries":[{"id":"70","name":"Radio
|
78
|
+
Stations","parent_id":"68"},{"id":"71","name":"Television Stations","parent_id":"68"},{"id":"72","name":"Information
|
79
|
+
Collection & Delivery","parent_id":"68"},{"id":"73","name":"Music & Music
|
80
|
+
Related Services","parent_id":"68"},{"id":"74","name":"Newspapers & News Services","parent_id":"68"},{"id":"75","name":"Publishing","parent_id":"68"},{"id":"76","name":"Search
|
81
|
+
Engines & Internet Portals","parent_id":"68"},{"id":"77","name":"Film\/Video
|
82
|
+
Production & Services","parent_id":"68"}]},"147":{"id":"147","name":"Energy,
|
83
|
+
Raw Materials & Utilities","parent_id":null,"sub_industries":[{"id":"80","name":"Mining","parent_id":"147"},{"id":"81","name":"Metals
|
84
|
+
& Minerals","parent_id":"147"},{"id":"148","name":"Electricity, Oil & Gas","parent_id":"147"},{"id":"149","name":"Waste
|
85
|
+
Treatment, Environmental & Recycling","parent_id":"147"},{"id":"150","name":"Water
|
86
|
+
& Water Treatment","parent_id":"147"},{"id":"233","name":"Aggregates, Concrete
|
87
|
+
& Cement","parent_id":"147"},{"id":"234","name":"Lumber & Wood Production","parent_id":"147"},{"id":"235","name":"Chemicals","parent_id":"147"},{"id":"236","name":"Gases","parent_id":"147"},{"id":"237","name":"Glass
|
88
|
+
& Clay","parent_id":"147"},{"id":"238","name":"Petrochemicals","parent_id":"147"},{"id":"239","name":"Pulp
|
89
|
+
& Paper","parent_id":"147"}]},"128":{"id":"128","name":"Construction & Real
|
90
|
+
Estate","parent_id":null,"sub_industries":[{"id":"83","name":"Real Estate","parent_id":"128"},{"id":"129","name":"Architecture,
|
91
|
+
Engineering & Design","parent_id":"128"},{"id":"130","name":"Commercial &
|
92
|
+
Residential Construction","parent_id":"128"},{"id":"229","name":"Aggregates,
|
93
|
+
Concrete & Cement","parent_id":"128"},{"id":"230","name":"Lumber & Wood Production","parent_id":"128"},{"id":"231","name":"Miscellaneous
|
94
|
+
Building Materials","parent_id":"128"},{"id":"232","name":"Plumbing & HVAC
|
95
|
+
Equipment","parent_id":"128"}]},"84":{"id":"84","name":"Retail","parent_id":null,"sub_industries":[{"id":"85","name":"Apparel
|
96
|
+
& Accessories","parent_id":"84"},{"id":"86","name":"Automobile Parts Stores","parent_id":"84"},{"id":"87","name":"Consumer
|
97
|
+
Electronics & Computers","parent_id":"84"},{"id":"88","name":"Department Stores
|
98
|
+
& Superstores","parent_id":"84"},{"id":"90","name":"Drug Stores & Pharmacies","parent_id":"84"},{"id":"91","name":"Gas
|
99
|
+
Stations, Convenience & Liquor Stores","parent_id":"84"},{"id":"92","name":"Flowers,
|
100
|
+
Gifts & Specialty","parent_id":"84"},{"id":"93","name":"Furniture","parent_id":"84"},{"id":"94","name":"Grocery","parent_id":"84"},{"id":"95","name":"Home
|
101
|
+
Improvement & Hardware","parent_id":"84"},{"id":"96","name":"Jewelry & Watches","parent_id":"84"},{"id":"97","name":"Office
|
102
|
+
Products","parent_id":"84"},{"id":"98","name":"Motor Vehicle Dealers","parent_id":"84"},{"id":"99","name":"Pet
|
103
|
+
Products","parent_id":"84"},{"id":"101","name":"Records, Videos & Books","parent_id":"84"},{"id":"102","name":"Rental
|
104
|
+
- Video & DVD","parent_id":"84"},{"id":"103","name":"Rental - Other","parent_id":"84"},{"id":"104","name":"Sporting
|
105
|
+
& Recreational Equipment","parent_id":"84"},{"id":"105","name":"Toys & Games","parent_id":"84"},{"id":"132","name":"Automotive
|
106
|
+
Service & Collision Repair","parent_id":"84"},{"id":"133","name":"Car & Truck
|
107
|
+
Rental","parent_id":"84"},{"id":"134","name":"Funeral Homes & Funeral-Related
|
108
|
+
Services","parent_id":"84"},{"id":"135","name":"Hair Salons","parent_id":"84"},{"id":"136","name":"Laundry
|
109
|
+
& Dry Cleaning Services","parent_id":"84"},{"id":"137","name":"Photography
|
110
|
+
Studios","parent_id":"84"},{"id":"138","name":"Travel Services & Agencies","parent_id":"84"},{"id":"139","name":"Veterinary
|
111
|
+
Care","parent_id":"84"},{"id":"140","name":"Weight & Health Management","parent_id":"84"},{"id":"249","name":"Child
|
112
|
+
Care","parent_id":"84"},{"id":"250","name":"Other","parent_id":"84"}]},"106":{"id":"106","name":"Software","parent_id":null,"sub_industries":[{"id":"107","name":"Custom
|
113
|
+
Software & Consulting","parent_id":"106"},{"id":"108","name":"Packaged Software","parent_id":"106"},{"id":"228","name":"Search
|
114
|
+
Engines & Internet Portals","parent_id":"106"}]},"109":{"id":"109","name":"Telecommunications","parent_id":null,"sub_industries":[{"id":"110","name":"Cable
|
115
|
+
& Satellite","parent_id":"109"},{"id":"111","name":"Internet Service Providers
|
116
|
+
& Related","parent_id":"109"},{"id":"112","name":"Telephony & Wireless","parent_id":"109"}]},"114":{"id":"114","name":"Transportation","parent_id":null,"sub_industries":[{"id":"115","name":"Airlines,
|
117
|
+
Airports & Air Services","parent_id":"114"},{"id":"116","name":"Freight &
|
118
|
+
Logistics Services","parent_id":"114"},{"id":"117","name":"Marine Shipping
|
119
|
+
& Transportation","parent_id":"114"},{"id":"118","name":"Rail, Bus & Taxi","parent_id":"114"},{"id":"119","name":"Trucking,
|
120
|
+
Moving & Storage","parent_id":"114"}]},"167":{"id":"167","name":"Leisure &
|
121
|
+
Hospitality","parent_id":null,"sub_industries":[{"id":"144","name":"Museums
|
122
|
+
& Art Galleries","parent_id":"167"},{"id":"168","name":"Lodging & Resorts","parent_id":"167"},{"id":"170","name":"Amusement
|
123
|
+
Parks & Attractions","parent_id":"167"},{"id":"171","name":"Fitness & Dance
|
124
|
+
Facilities","parent_id":"167"},{"id":"172","name":"Gambling & Gaming","parent_id":"167"},{"id":"173","name":"Theaters","parent_id":"167"},{"id":"174","name":"Zoos
|
125
|
+
& National Parks","parent_id":"167"},{"id":"175","name":"Restaurants","parent_id":"167"},{"id":"176","name":"Sports
|
126
|
+
Teams & Leagues","parent_id":"167"}]},"151":{"id":"151","name":"Finance","parent_id":null,"sub_industries":[{"id":"152","name":"Banking","parent_id":"151"},{"id":"153","name":"Brokerage","parent_id":"151"},{"id":"154","name":"Credit
|
127
|
+
Cards & Transaction Processing","parent_id":"151"},{"id":"156","name":"Investment
|
128
|
+
Banking","parent_id":"151"},{"id":"157","name":"Venture Capital & Private
|
129
|
+
Equity","parent_id":"151"},{"id":"158","name":"Mutual Funds & Investment Managers","parent_id":"151"},{"id":"177","name":"Insurance","parent_id":"151"}]},"159":{"id":"159","name":"Healthcare","parent_id":null,"sub_industries":[{"id":"160","name":"Emergency
|
130
|
+
Medical Transportation & Svcs","parent_id":"159"},{"id":"161","name":"Hospitals
|
131
|
+
& Clinics","parent_id":"159"},{"id":"162","name":"Medical Testing & Clinical
|
132
|
+
Laboratories","parent_id":"159"},{"id":"163","name":"Medical Devices & Equipment","parent_id":"159"},{"id":"164","name":"Biotechnology","parent_id":"159"},{"id":"165","name":"Pharmaceuticals","parent_id":"159"},{"id":"243","name":"Public
|
133
|
+
Health","parent_id":"159"}]}}},"debug":{"requestTime":0.0183761119843}}}'
|
134
|
+
http_version:
|
135
|
+
recorded_at: Wed, 17 Apr 2013 16:38:45 GMT
|
136
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.netprospex.com/1.1/person/list.json?offset=-1&organizationName=Pardot
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Authorization:
|
13
|
+
- OAuth oauth_consumer_key="<NETPROSPEX_KEY>", oauth_nonce="601b1144102ce1829afc216d8b4fa32f",
|
14
|
+
oauth_signature="iD97QtskfcJzYtbK3HWYnWKDnpU%3D", oauth_signature_method="HMAC-SHA1",
|
15
|
+
oauth_timestamp="1366302156", oauth_token="<NETPROSPEX_USER_TOKEN>", oauth_version="1.0"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- ! '*/*'
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Thu, 18 Apr 2013 16:22:36 GMT
|
27
|
+
Server:
|
28
|
+
- Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips DAV/2 mod_wsgi/3.3
|
29
|
+
Python/2.7.2 PHP/5.3.10
|
30
|
+
X-Powered-By:
|
31
|
+
- PHP/5.3.10
|
32
|
+
Connection:
|
33
|
+
- close
|
34
|
+
Content-Length:
|
35
|
+
- '535'
|
36
|
+
Content-Type:
|
37
|
+
- application/json
|
38
|
+
body:
|
39
|
+
encoding: US-ASCII
|
40
|
+
string: ! '{"response":{"version":"1.1","responseId":"F0DDEF40-3F2E-D16C-CC19-2511A3538FD3","responseType":"error","request":{"startTime":"2013-04-18
|
41
|
+
12:22:36","requestType":"person_list","url":"\/1.1\/person\/list.json?organizationName=Pardot&offset=-1","userId":"d5c72b79-a2ed-11e2-8c42-00259059ba92"},"transaction":{"accountId":"d5c51e5f-a2ed-11e2-8c42-00259059ba92","accountStartBalance":7120,"accountEndBalance":null},"error":{"message":"invalid
|
42
|
+
pagination values limit=100, offset=-1","code":"PAG"},"debug":{"requestTime":0.0189089775085}}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Thu, 18 Apr 2013 16:22:37 GMT
|
45
|
+
recorded_with: VCR 2.4.0
|