diff --git a/CHANGELOG.md b/CHANGELOG.md index 847acb07..51e8cdb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. +## v5.3.3 - 2017-04-22 +### Updated: + - Pinterest request headers update + ## v5.3.2 - 2017-04-17 ### Fixed: - Last error message. First goes message, then code if message is empty diff --git a/src/Api/Providers/Auth.php b/src/Api/Providers/Auth.php index e40c0128..447c612e 100644 --- a/src/Api/Providers/Auth.php +++ b/src/Api/Providers/Auth.php @@ -215,7 +215,7 @@ protected function fillRegistrationForm($registrationForm, $password, $name, $co } /** - * @param string $email + * @param string|Registration $email * @param string $password * @param string $name * @param string $country diff --git a/src/Api/Providers/Boards.php b/src/Api/Providers/Boards.php index 0c6cd4ec..58fae8cb 100644 --- a/src/Api/Providers/Boards.php +++ b/src/Api/Providers/Boards.php @@ -84,8 +84,8 @@ public function forMe() public function info($username, $board) { $requestOptions = [ - 'username' => $username, 'slug' => $board, + 'username' => $username, 'field_set_key' => 'detailed', ]; diff --git a/src/Api/Providers/Pinners.php b/src/Api/Providers/Pinners.php index d8743eaf..6c476a2f 100644 --- a/src/Api/Providers/Pinners.php +++ b/src/Api/Providers/Pinners.php @@ -2,13 +2,13 @@ namespace seregazhuk\PinterestBot\Api\Providers; +use seregazhuk\PinterestBot\Api\Providers\Core\EntityProvider; use seregazhuk\PinterestBot\Api\Response; -use seregazhuk\PinterestBot\Helpers\Pagination; -use seregazhuk\PinterestBot\Helpers\UrlBuilder; use seregazhuk\PinterestBot\Api\Traits\Followable; use seregazhuk\PinterestBot\Api\Traits\Searchable; use seregazhuk\PinterestBot\Exceptions\WrongFollowingType; -use seregazhuk\PinterestBot\Api\Providers\Core\EntityProvider; +use seregazhuk\PinterestBot\Helpers\Pagination; +use seregazhuk\PinterestBot\Helpers\UrlBuilder; class Pinners extends EntityProvider { @@ -210,7 +210,7 @@ public function followers($username = '') $this->resolveCurrentUsername() : $username; - if(empty($username)) return new Pagination(); + if (!$username) return new Pagination(); return $this->getFollowers($username); } diff --git a/src/Api/Request.php b/src/Api/Request.php index 88763fae..23093f91 100644 --- a/src/Api/Request.php +++ b/src/Api/Request.php @@ -51,8 +51,9 @@ class Request 'DNT: 1', 'X-Pinterest-AppState: active', 'X-NEW-APP: 1', - 'X-APP-VERSION: 167e7a7', + 'X-APP-VERSION: a569a2b', 'X-Requested-With: XMLHttpRequest', + 'X-Pinterest-AppState:active', ]; /**