Skip to content

Commit

Permalink
Readme.md & version update
Browse files Browse the repository at this point in the history
  • Loading branch information
david-schrenker committed Apr 21, 2021
1 parent fdc128b commit 415580a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InjectionApi/src/SocketLabsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SocketLabsClient{
private $serverId;
private $apiKey;

const VERSION = "1.1.2";
const VERSION = "1.2.1";
public $version = self::VERSION;

/**
Expand All @@ -37,7 +37,7 @@ class SocketLabsClient{
*/
public $requestTimeout;

/**
/**
* Configure to different timeout if desired
*/
public $numberOfRetries;
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ This example demonstrates how to embed an image in your message.
### [Basic send with a web proxy](https://github.com/socketlabs/socketlabs-php/blob/master/InjectionApi/Examples/ExampleCode/Basic/BasicWithProxy.php)
This example demonstrates how to use a proxy with your HTTP client.

### [Basic send with retry enabled](https://github.com/socketlabs/socketlabs-php/blob/master/InjectionApi/Examples/ExampleCode/Basic/BasicWithRetry.php)
This example demonstrates how to use the retry logic with your HTTP client.

### [Basic send with Amp ](https://github.com/socketlabs/socketlabs-php/blob/main/InjectionApi/Examples/ExampleCode/Basic/BasicWithAmpBody.php)
This example demonstrates how to send a basic message with an AMP Html body.
For more information about AMP please see [AMP Project](https://amp.dev/documentation/)
Expand Down Expand Up @@ -196,6 +199,7 @@ For more information about AMP please see [AMP Project](https://amp.dev/document

<a name="version"></a>
# Version
* 1.2.1 - Adding optional retry logic for Http requests. If configured, the request will retry when certain 500 errors occur (500, 502, 503, 504)
* 1.1.2 - Add support of PHP 8.0
* 1.1.1 - Adding request timeout value on the client for Http requests
* 1.1.0 - Adds Amp Html Support
Expand Down

0 comments on commit 415580a

Please sign in to comment.