pardot_wrapper 0.1.6 → 0.1.8

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: ee78f347e2404be1976ba1cf39a06d4d6f8236be8a0cd4c0d4b879e74f2a9179
4
- data.tar.gz: d6c525153f0c7434e3ce21ab7d4cf66c8f26e5d236f524b93d665e6a9241dfa2
3
+ metadata.gz: badef9e253fc97d7aaa2b642b9ae0c0c4970927c7290059c3c4463e2e7b7b2ad
4
+ data.tar.gz: d72a828d17d19b60574ad574e3472a8265f5a5aa9dbe6dbb67e426fb8bf3d5cb
5
5
  SHA512:
6
- metadata.gz: a592e1c93c0c1709b872490906b67f01c08cd41682173a0b2e04bde16b3e9c12aa00c3cd20023d2bf4dcb8da75dbd084f5f7ec16b270daf807f51304e62892c0
7
- data.tar.gz: c65036d8f7dd3fa30b2310c9d648081a9234b7270005dc09d863662c6f59c7a02623046113a6810486e4adff82dfea42364b368ee81b7bd580352c3542018bbb
6
+ metadata.gz: 1fa704380273879c07161f4a051aa63db311a390ad9dfc1b47b519bfa5989409cc715a8e9d85eddaf4f96054796b37a6be49b74ebb62735fa8ac70611f41432b
7
+ data.tar.gz: 72aeda6a05d0b665ba7d51cf07e3fca745dc0ea7d1657e828f292f86612459250f70e9af2d1063478a5637e43f6b415a7125eeebb4ca77959d1c88b0589f2559
data/lib/pardot/client.rb CHANGED
@@ -41,6 +41,15 @@ module Pardot
41
41
  perform_request { self.class.post('/list-memberships?fields=id', body: query.to_json, headers: auth_headers) }
42
42
  end
43
43
 
44
+ def get_prospect_by_email(email)
45
+ perform_request { self.class.get("/prospects?fields=id&email=#{email}", headers: auth_headers) }
46
+ end
47
+
48
+ def update_prospect(prospect_id, params = {})
49
+ query = params
50
+ perform_request { self.class.patch("/prospects/#{prospect_id}", body: query.to_json, headers: auth_headers) }
51
+ end
52
+
44
53
  private
45
54
 
46
55
  def auth_headers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pardot
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.8"
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.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - DougPetronilio
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-02 00:00:00.000000000 Z
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -80,7 +80,7 @@ metadata:
80
80
  homepage_uri: https://github.com/dougpetronilio/pardot_wrapper
81
81
  source_code_uri: https://github.com/dougpetronilio/pardot_wrapper
82
82
  changelog_uri: https://github.com/dougpetronilio/pardot_wrapper
83
- post_install_message:
83
+ post_install_message:
84
84
  rdoc_options: []
85
85
  require_paths:
86
86
  - lib
@@ -95,8 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubygems_version: 3.4.10
99
- signing_key:
98
+ rubygems_version: 3.5.6
99
+ signing_key:
100
100
  specification_version: 4
101
101
  summary: Pardot Wrapper Api v5
102
102
  test_files: []