realadeel / pinterest-api

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

adds get_pins method to the user module #4

Closed sts10 closed 9 years ago

sts10 commented 9 years ago

Some folks might like a get_pins method for user, which seems to be described in the docs.

Sorry it took me three commits! Feel free to do it yourself in one.

realadeel commented 9 years ago

There actually already is a get_pins method. In the Readme you can see it towards the bottom of the Usage section. It might be confusing because it shows it with a query option but you should be able to just as well weite client.get_pins by itself and get all your pins. Maybe we can make it clearer in the Readme that the query parameter is optional.

Torq07 commented 9 years ago

As i can see get_pins is presented in Readme, but apparently realadeel means search_pins(query: 'shoes') cause i don't find any get_pins method in client and it not working as described in Readme, but works well if i use search_pins method. I must agree with sts10 that get_pins method will be more obvious and effective approach to get all the pins from authenticating user, and it can recieve argument with User ID if list of pins from other user needed

realadeel commented 9 years ago

Ah! I missed the last couple of messages here.

I updated to version 0.2.2 using the get_pins and get_boards syntax. See Readme!