realadeel / pinterest-api

Ruby gem to interact with the official Pinterest REST API
MIT License
58 stars 37 forks source link

How to use return form get_boards? #14

Open majioa opened 6 years ago

majioa commented 6 years ago

When I issue a request to the gem to get my private boards with get_boards method I get the strange answer:

{"data"=>[],
 "page"=>
  {"cursor"=>"b28yNXxmMGVmZDA5YjB5Yjk5NDIxZjgzODZjNDRkZWEzNTRhZmIyZDRjZjE3ZWY4YmRmMWE4NmVhZGQwNDg1NTNmOTAw",
   "next"=>
    "https://api.pinterest.com/v1/me/search/pins/?access_token=ATn4phEFgj31x3eaA1tgFLeknE7MFQ0LI9ZTHe5Epzcd5oAzhAAAAAA&query=Agnetis&cursor=b28yNXxmMGVmZDA5YjA5Yjk5NDIxZjgzODZjNDRkZWEzNTRhZmIyZDRjZjE3ZWY4YmRmMWE4NmVhZGQwNDg1NTNmOTAw"}}

The documentation https://developers.pinterest.com/docs/api/boards/ give not the same answer as I get from the method above.

So the question is how to use the method properly?