seregazhuk / php-pinterest-bot

This PHP library will help you to work with your Pinterest account without using any API account credentials.
MIT License
416 stars 129 forks source link

possible get Pinner info by ID instead of username? #411

Closed hhitch closed 6 years ago

hhitch commented 6 years ago

Hi there, I have situations where I have just the ID of the pinner and I need to get their username. If I do $bot->pinners->info($userid) it returns error "No url". I checked the source code and I see it only takes the Username. Is there some way to query the pinner info using their ID instead of their username?

thanks much in advance! -H.

seregazhuk commented 6 years ago

Hi! @hhitch where did you get this ID? Actually Pinterest API uses only username to fetch this data :( maybe you can find the way to fetch ID and username?

hhitch commented 6 years ago

like if we're searching pinners by board and it just has $board['owner']['id'] and no username. How to get the username -- I was thinking $bot->users->profile($board['owner']['id']) but so far I haven't figured it out completely

seregazhuk commented 6 years ago

Show me the code. If you are searching through boards, the results contain usernames:

d868f02993

seregazhuk commented 6 years ago

Closed due to no feedback.