Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #269 from seregazhuk/develop
Browse files Browse the repository at this point in the history
Pinterest headers update
  • Loading branch information
seregazhuk authored Apr 22, 2017
2 parents e8fbb2b + 67bafff commit 615456c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Providers/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Providers/Boards.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public function forMe()
public function info($username, $board)
{
$requestOptions = [
'username' => $username,
'slug' => $board,
'username' => $username,
'field_set_key' => 'detailed',
];

Expand Down
8 changes: 4 additions & 4 deletions src/Api/Providers/Pinners.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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);
}
Expand Down
3 changes: 2 additions & 1 deletion src/Api/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];

/**
Expand Down

0 comments on commit 615456c

Please sign in to comment.