From 7406cc14d9b03d2e943cb0328bbc0275dd9a11f2 Mon Sep 17 00:00:00 2001 From: Federico Ricchiuto Date: Fri, 27 Oct 2023 12:35:56 +0200 Subject: [PATCH] Add support for "Get Contacts by Emails" endpoint - Add missing endpoint support - Fix typos in CONTRIBUTING.md example --- CONTRIBUTING.md | 6 +++--- lib/Client.php | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b183415..12f8072 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -Hello! Thank you for choosing to help contribute to one of the SendGrid open source projects. There are many ways you can contribute and help is always welcome. We merely ask that you follow the following contribution policies. +Hello! Thank you for choosing to help contribute to one of the SendGrid open source projects. There are many ways you can contribute and help is always welcome. We merely ask that you follow the following contribution policies. - [Improvements to the Codebase](#improvements-to-the-codebase) - [Understanding the Code Base](#understanding-the-codebase) @@ -61,7 +61,7 @@ An HTTP client with a fluent interface using method chaining and reflection. By This allows for the following mapping from a URL to a method chain: -`/api_client/{api_key_id}/version` maps to `client->api_client().->_($api_key_id)->version->()` where is a [HTTP verb](lib/Client.php#L210). +`/api_client/{api_key_id}/version` maps to `$client->api_client()->_($api_key_id)->version->()` where is a [HTTP verb](lib/Client.php#L210). **/lib/SendGrid/Config.php** @@ -149,4 +149,4 @@ Please run your code through: ## Code Reviews -If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, Github has some great [information on how to review a Pull Request](https://help.github.com/articles/about-pull-request-reviews/). +If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, Github has some great [information on how to review a Pull Request](https://help.github.com/articles/about-pull-request-reviews/). \ No newline at end of file diff --git a/lib/Client.php b/lib/Client.php index bf36535..8b3bd83 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -66,6 +66,7 @@ * Marketing * @method Client marketing() * @method Client contacts() + * @method Client emails() * @method Client count() * @method Client exports() * @method Client imports() @@ -650,4 +651,4 @@ public function __call($name, $args) return $this->_($name); } -} +} \ No newline at end of file