dirkgroenen / pinterest-api-php

A PHP wrapper for the official Pinterest API. :pushpin:
https://developers.pinterest.com/docs/getting-started/introduction/
Apache License 2.0
173 stars 76 forks source link

users->getMeBoards() brings "Undefined index: page" #1

Closed webresh closed 9 years ago

webresh commented 9 years ago

Hi there! Currently Pinterest API response doesn't have a 'page' value. There is only a 'data' field in response, and it is stated here: /pinterest-api-php/tests/Pinterest/responses/UsersTest/testGetMeBoards.json

In collection.php:90 there is // Add pagination object $this->pagination = $this->response->page;

It makes /Transport/Response.php:70 answering Undefined index: page

thanks

dirkgroenen commented 9 years ago

Thanks. As for now I've changed the pagination value to false when no pagination is available.