Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
}
],
"require": {
"php": ">=5.6"
"php": ">=5.6",
"ext-curl": "*",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "~4.4",
Expand Down
16 changes: 9 additions & 7 deletions lib/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
*
* Quickly and easily access any REST or REST-like API.
*
* @method Response get($body = null, $query = null, $headers = null)
* @method Response post($body = null, $query = null, $headers = null)
* @method Response patch($body = null, $query = null, $headers = null)
* @method Response put($body = null, $query = null, $headers = null)
* @method Response delete($body = null, $query = null, $headers = null)
* @method Response get($body = null, $query = null, $headers = null, $retryOnLimit = null)
* @method Response post($body = null, $query = null, $headers = null, $retryOnLimit = null)
* @method Response patch($body = null, $query = null, $headers = null, $retryOnLimit = null)
* @method Response put($body = null, $query = null, $headers = null, $retryOnLimit = null)
* @method Response delete($body = null, $query = null, $headers = null, $retryOnLimit = null)
*
* @method Client version($value)
* @method Client|Response send()
Expand Down Expand Up @@ -123,14 +123,14 @@
* @method Client subusers()
* @method Client reputations()
*
* Supressions
* Suppressions
* @method Client suppression()
* @method Client global()
* @method Client blocks()
* @method Client bounces()
* @method Client invalid_emails()
* @method Client spam_reports()
* @method Client unsubcribes()
* @method Client unsubscribes()
*
* Templates
* @method Client templates()
Expand Down Expand Up @@ -432,6 +432,7 @@ private function parseResponse($channel, $content)
* @param array $headers original headers
*
* @return Response response object
* @throws InvalidRequest
*/
private function retryRequest(array $responseHeaders, $method, $url, $body, $headers)
{
Expand Down Expand Up @@ -562,6 +563,7 @@ public function _($name = null)
* @param array $args parameters passed with the method call
*
* @return Client|Response|Response[]|null object
* @throws InvalidRequest
*/
public function __call($name, $args)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Exception/InvalidRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Thrown when invalid payload was constructed, which could not reach SendGrid server.
*
* @package SendGrid\Exceptions
* @package SendGrid\Exception
*/
class InvalidRequest extends \Exception
{
Expand Down