Skip to content

Commit

Permalink
Merge pull request #54 from bookboon/hotfix/professional-book-type
Browse files Browse the repository at this point in the history
Change bookType pdf => professional
  • Loading branch information
lkm authored Apr 29, 2020
2 parents 3066c35 + 38a7046 commit 3b26ff3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Entity/Book.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public static function search(
string $query,
int $limit = 10,
int $offset = 0,
array $bookTypes = ['pdf']
array $bookTypes = ['professional']
) : BookboonResponse {
$bResponse = $bookboon->rawRequest('/v1/search', ['q' => $query, 'limit' => $limit, 'offset' => $offset, 'bookType' => join(',', $bookTypes)]);

Expand All @@ -204,7 +204,7 @@ public static function recommendations(
Bookboon $bookboon,
array $bookIds = [],
int $limit = 5,
array $bookTypes = ['pdf']
array $bookTypes = ['professional']
) : BookboonResponse {
$bResponse = $bookboon->rawRequest('/v1/recommendations', ['limit' => $limit, 'books' => $bookIds, 'bookType' => join(',', $bookTypes)]);

Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Category extends Entity
* @throws \Bookboon\Api\Exception\EntityDataException
* @throws \Bookboon\Api\Exception\UsageException
*/
public static function get(Bookboon $bookboon, string $categoryId, array $bookTypes = ['pdf']) : BookboonResponse
public static function get(Bookboon $bookboon, string $categoryId, array $bookTypes = ['professional']) : BookboonResponse
{
$bResponse = $bookboon->rawRequest("/v1/categories/$categoryId", ['bookType' => join(',', $bookTypes)]);

Expand Down
4 changes: 2 additions & 2 deletions src/Entity/Frontpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Frontpage extends Entity
* @throws UsageException
* @throws \Bookboon\Api\Exception\ApiDecodeException
*/
public static function get(Bookboon $bookboon, array $bookTypes = ['pdf']) : BookboonResponse
public static function get(Bookboon $bookboon, array $bookTypes = ['professional']) : BookboonResponse
{
$bResponse = $bookboon->rawRequest('/v1/frontpage', ['bookType' => implode(',', $bookTypes)]);

Expand All @@ -44,7 +44,7 @@ public static function get(Bookboon $bookboon, array $bookTypes = ['pdf']) : Boo
* @throws \Bookboon\Api\Exception\ApiDecodeException
* @throws \Bookboon\Api\Exception\EntityDataException
*/
public static function getBySlug(Bookboon $bookboon, string $slug, array $bookTypes = ['pdf']) : BookboonResponse
public static function getBySlug(Bookboon $bookboon, string $slug, array $bookTypes = ['professional']) : BookboonResponse
{
$bResponse = $bookboon->rawRequest("/v1/frontpage/$slug", ['bookType' => join(',', $bookTypes)]);

Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Journey.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function get(Bookboon $bookboon, string $journeyId) : BookboonResp
* @throws UsageException
* @throws \Bookboon\Api\Exception\ApiDecodeException
*/
public static function getAll(Bookboon $bookboon, array $bookTypes = ['pdf']) : BookboonResponse
public static function getAll(Bookboon $bookboon, array $bookTypes = ['professional']) : BookboonResponse
{
$bResponse = $bookboon->rawRequest('/v1/journeys');

Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Language extends Entity
* @throws UsageException
* @throws \Bookboon\Api\Exception\ApiDecodeException
*/
public static function get(Bookboon $bookboon, array $bookTypes = ['pdf']) : BookboonResponse
public static function get(Bookboon $bookboon, array $bookTypes = ['professional']) : BookboonResponse
{
$bResponse = $bookboon->rawRequest('/v1/languages');

Expand Down

0 comments on commit 3b26ff3

Please sign in to comment.