Skip to content

Commit f0ef950

Browse files
author
Rich Leland
committed
Bump version, update changelog
1 parent 40558e0 commit f0ef950

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased][unreleased]
66

7+
## [2.0.1] - 2016-06-29
8+
### Fixed
9+
- [#129](https://github.com/SparkPost/php-sparkpost/pull/129) issue with `content.from` being expected even when using a stored template
10+
711
## [2.0.0] - 2016-06-24
12+
13+
This major release included a complete refactor of the library to be a thin HTTP client layer with some sugar methods on the Transmission class. There is now a base resource that can be used to call any SparkPost API with a one to one mapping of payload parameters to what is listed in our API documentation.
14+
815
### Changed
916
- [#123](https://github.com/SparkPost/php-sparkpost/pull/123) Rewrote docs and updated composer name
1017
- [#122](https://github.com/SparkPost/php-sparkpost/pull/122) Add transmission class and examples
@@ -62,7 +69,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
6269
### Fixed
6370
- README now has proper code blocks denoting PHP language
6471

65-
[unreleased]: https://github.com/sparkpost/php-sparkpost/compare/1.2.1...HEAD
72+
[unreleased]: https://github.com/sparkpost/php-sparkpost/compare/2.0.1...HEAD
73+
[2.0.0]: https://github.com/sparkpost/php-sparkpost/compare/2.0.0...2.0.1
6674
[2.0.0]: https://github.com/sparkpost/php-sparkpost/compare/1.2.1...2.0.0
6775
[1.2.1]: https://github.com/sparkpost/php-sparkpost/compare/1.2.0...1.2.1
6876
[1.2.0]: https://github.com/sparkpost/php-sparkpost/compare/v1.1.0...1.2.0

lib/SparkPost/SparkPost.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SparkPost
1111
/**
1212
* Library version, used for setting User-Agent.
1313
*/
14-
private $version = '2.0.0';
14+
private $version = '2.0.1';
1515

1616
/**
1717
* HttpClient used to make requests.
@@ -42,7 +42,7 @@ class SparkPost
4242

4343
/**
4444
* Sets up the SparkPost instance.
45-
*
45+
*
4646
* @param HttpClient $httpClient - An httplug client or adapter
4747
* @param array $options - An array to overide default options or a string to be used as an API key
4848
*/
@@ -60,7 +60,7 @@ public function __construct(HttpClient $httpClient, $options)
6060
* @param string $uri
6161
* @param array $payload - either used as the request body or url query params
6262
* @param array $headers
63-
*
63+
*
6464
* @return SparkPostPromise or SparkPostResponse depending on sync or async request
6565
*/
6666
public function request($method = 'GET', $uri = '', $payload = [], $headers = [])
@@ -79,7 +79,7 @@ public function request($method = 'GET', $uri = '', $payload = [], $headers = []
7979
* @param string $uri
8080
* @param array $payload
8181
* @param array $headers
82-
*
82+
*
8383
* @return SparkPostResponse
8484
*
8585
* @throws SparkPostException
@@ -101,7 +101,7 @@ public function syncRequest($method = 'GET', $uri = '', $payload = [], $headers
101101
* @param string $uri
102102
* @param array $payload
103103
* @param array $headers
104-
*
104+
*
105105
* @return SparkPostPromise
106106
*/
107107
public function asyncRequest($method = 'GET', $uri = '', $payload = [], $headers = [])
@@ -115,7 +115,7 @@ public function asyncRequest($method = 'GET', $uri = '', $payload = [], $headers
115115
}
116116
}
117117

118-
/**
118+
/**
119119
* Builds request from given params.
120120
*
121121
* @param string $method
@@ -191,7 +191,7 @@ public function getUrl($path, $params = [])
191191
return $options['protocol'].'://'.$options['host'].($options['port'] ? ':'.$options['port'] : '').'/api/'.$options['version'].'/'.$path.($paramsString ? '?'.$paramsString : '');
192192
}
193193

194-
/**
194+
/**
195195
* Sets $httpClient to be used for request.
196196
*
197197
* @param Http\Client\HttpClient $httpClient - the client to be used for request

0 commit comments

Comments
 (0)