pardot_wrapper 0.1.0 → 0.1.1
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/LICENSE +21 -0
- data/README.md +2 -2
- data/lib/pardot/client.rb +2 -2
- data/lib/pardot/version.rb +1 -1
- data/pardot_wrapper-0.1.0.gem +0 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47cfec819340b06d9589226ef322517745c613d3fea10ce4f2e7e987b07fe6c3
|
4
|
+
data.tar.gz: 8cedebaa3587c5367a6eb0ad0f263666ca787694f477f423a5f712c1a8dc2322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e44e75e7b6bdc815b8a0d66a5de8cb1759fd7f6f817173a31100b5833b4779e2c253f3c06703667377a2eb8d0377c7ec316195fb04ac4a3ad238ced65f0c0423
|
7
|
+
data.tar.gz: b375451a022bf5364b5a302df5c3e531dab72c7887ea1f97626ef6f607c51fbb3641217c356d6a39deac223d5a5e69b85efce80d8216fe04563079227ed00f1e
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 Douglas Petronilio
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@ gem install pardot_wrapper
|
|
29
29
|
To start using PardotWrapper, configure the client with your OAuth credentials:
|
30
30
|
|
31
31
|
```ruby
|
32
|
-
client = PardotWrapper.new(access_token, refresh_token, client_id, client_secret)
|
32
|
+
client = PardotWrapper.new(access_token, refresh_token, client_id, client_secret, pardot_business_unit_id, :production)
|
33
33
|
```
|
34
34
|
|
35
35
|
## Available Methods
|
@@ -54,7 +54,7 @@ client.create_prospect(email, additional_params)
|
|
54
54
|
|
55
55
|
- Create List Membership
|
56
56
|
```ruby
|
57
|
-
client.
|
57
|
+
client.create_list_membership(email, additional_params)
|
58
58
|
|
59
59
|
```
|
60
60
|
|
data/lib/pardot/client.rb
CHANGED
@@ -21,7 +21,7 @@ module Pardot
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def list_custom_fields
|
24
|
-
perform_request { self.class.get('/
|
24
|
+
perform_request { self.class.get('/custom-fields', headers: auth_headers) }
|
25
25
|
end
|
26
26
|
|
27
27
|
def get_account
|
@@ -35,7 +35,7 @@ module Pardot
|
|
35
35
|
|
36
36
|
def create_list_membership(prospect_id, list_id)
|
37
37
|
query = { prospect_id: prospect_id, list_id: list_id }
|
38
|
-
perform_request { self.class.post('/
|
38
|
+
perform_request { self.class.post('/list-memberships', body: query.to_json, headers: auth_headers) }
|
39
39
|
end
|
40
40
|
|
41
41
|
private
|
data/lib/pardot/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pardot_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DougPetronilio
|
@@ -65,11 +65,13 @@ extensions: []
|
|
65
65
|
extra_rdoc_files: []
|
66
66
|
files:
|
67
67
|
- ".rspec"
|
68
|
+
- LICENSE
|
68
69
|
- README.md
|
69
70
|
- Rakefile
|
70
71
|
- lib/pardot/client.rb
|
71
72
|
- lib/pardot/version.rb
|
72
73
|
- lib/pardot_wrapper.rb
|
74
|
+
- pardot_wrapper-0.1.0.gem
|
73
75
|
- pardot_wrapper.gemspec
|
74
76
|
- sig/pardot_wrapper.rbs
|
75
77
|
homepage: https://github.com/dougpetronilio/pardot_wrapper
|