pardot_wrapper 0.1.6 → 0.1.7

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: '094962740b6e8375c885a96160feab31bc593ecdb0fab86ebe98ca408f0b52db'
4
+ data.tar.gz: 31ff0047cd7f92855cb2624605eb3c43a16ca9f4ce99b3bd46b0e688f3ec154d
5
5
  SHA512:
6
- metadata.gz: a592e1c93c0c1709b872490906b67f01c08cd41682173a0b2e04bde16b3e9c12aa00c3cd20023d2bf4dcb8da75dbd084f5f7ec16b270daf807f51304e62892c0
7
- data.tar.gz: c65036d8f7dd3fa30b2310c9d648081a9234b7270005dc09d863662c6f59c7a02623046113a6810486e4adff82dfea42364b368ee81b7bd580352c3542018bbb
6
+ metadata.gz: 65c747a0506d07277d84eee11bc59570df15dd45026943e3d16e84cb3d349957aaa389636be67f70372e4e8eb15ca5fe809683da521281dea688f7a90854f8e7
7
+ data.tar.gz: 39c7ff79129d771baf487ed469213d675f61321f2e74cf7b4872f89984e0f2c7799b25d92dc248160dda69bae8ebcf6c7d4f28fbabc0aae3c93973a6e432d8b0
data/lib/pardot/client.rb CHANGED
@@ -41,6 +41,10 @@ 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
+
44
48
  private
45
49
 
46
50
  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.7"
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.7
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-04 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: []