seregazhuk / php-pinterest-bot

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

Title (Creating new Pin) #418

Closed delemore closed 5 years ago

delemore commented 5 years ago

When I create a new pin on Pinterest, I can specify a title. Unfortunately this does not seem possible in your bot. Can you please add this feature occasionally?

seregazhuk commented 5 years ago

I cannot find the title on Pinterest, only a description. Can you provide a screenshot, please?

delemore commented 5 years ago

screenshot

Maybe the title can only be set with a Pinterest business profile?

seregazhuk commented 5 years ago

I also have a business account, but unfortunately, I don't have this feature in browser 😞

2018-10-20 16 36 02
delemore commented 5 years ago

Sorry, I have expressed myself unclear. It's about setting a title for "Rich Pins" in the Business Account:

http://thecontentbug.com/2017/02/07/add-titles-to-your-pins/

seregazhuk commented 5 years ago

Sorry, but the bot doesn't support reach pins 😞

delemore commented 5 years ago

That's really a pity :weary:

seregazhuk commented 5 years ago

I'll try to implement this

seregazhuk commented 5 years ago

@delemore Hi! If you are still interested, now you can specify a title for a pin:

```php
$pinInfo = $bot->pins->create(
    'http://exmaple.com/image.jpg',
    $boardId,
    'Pin description',
    'http://site.com',
    'Pin title'
);

Or when editing a pin:

$bot->pins->edit($pinId, 'new description', 'new link', $newBoardId, 'new title');

The only thing you need to do is to install the dev version of the package. I haven't tagged a release yet:

composer require seregazhuk/pinterest-bot:dev-master