pardot_wrapper 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72847e7ef3a5876e1cf234b0caabd1b122037f7ecd55ee094b92028effac5f8a
4
- data.tar.gz: a07b1cf5d42e5b9dbfe0cb919f1f5e182936515c58a27abd47f25cc6df45499b
3
+ metadata.gz: ee78f347e2404be1976ba1cf39a06d4d6f8236be8a0cd4c0d4b879e74f2a9179
4
+ data.tar.gz: d6c525153f0c7434e3ce21ab7d4cf66c8f26e5d236f524b93d665e6a9241dfa2
5
5
  SHA512:
6
- metadata.gz: 24716e68e776744a47d6d1eae4e65e6d3207d990d4623fb72b7a025c9f65d08dc20b12586b6cc17ac79ff672b9aa70595cfe921cf62bbad6f4f94f320c0d1201
7
- data.tar.gz: 5d3438348488c329cb8578663a81aea4e6a011cdd548a84edb7fcd9054915d2fdbbd818f88a6dc43fe78d033f7306fdbe17c85897071a8ceed8943be43b7a6f4
6
+ metadata.gz: a592e1c93c0c1709b872490906b67f01c08cd41682173a0b2e04bde16b3e9c12aa00c3cd20023d2bf4dcb8da75dbd084f5f7ec16b270daf807f51304e62892c0
7
+ data.tar.gz: c65036d8f7dd3fa30b2310c9d648081a9234b7270005dc09d863662c6f59c7a02623046113a6810486e4adff82dfea42364b368ee81b7bd580352c3542018bbb
data/lib/pardot/client.rb CHANGED
@@ -36,9 +36,9 @@ module Pardot
36
36
  perform_request { self.class.post('/prospects', body: query.to_json, headers: auth_headers) }
37
37
  end
38
38
 
39
- def add_prospect_to_list_membership(prospect_id, list_id)
40
- query = { prospectId: prospect_id, listId: list_id }
41
- perform_request { self.class.post('/list-memberships', body: query.to_json, headers: auth_headers) }
39
+ def add_prospect_to_list_membership(prospect_id, list_id, opted_out)
40
+ query = { prospectId: prospect_id, listId: list_id, optedOut: opted_out }
41
+ perform_request { self.class.post('/list-memberships?fields=id', body: query.to_json, headers: auth_headers) }
42
42
  end
43
43
 
44
44
  private
@@ -81,8 +81,6 @@ module Pardot
81
81
  response = yield
82
82
  end
83
83
 
84
- raise "API request failed: #{response.body}" unless response.success?
85
-
86
84
  response
87
85
  end
88
86
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pardot
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pardot_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - DougPetronilio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-28 00:00:00.000000000 Z
11
+ date: 2024-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty