GithubHelp home page GithubHelp logo

Comments (6)

seregazhuk avatar seregazhuk commented on July 25, 2024

Hi, very strange. I have tried it now, and the output is following. Can you provide more details about your code? Or are you using the latest version of the lib?

Array
(
    [origin_pinner] => Array
        (
            [username] => AllieAlaska
            [first_name] => Genevieve
            [domain_url] => 
            [twitter_url] => 
            [domain_verified] => 
            [image_medium_url] => https://s-media-cache-ak0.pinimg.com/avatars/AllieAlaska_1444327826_75.jpg
            [explicitly_followed_by_me] => 
            [location] => 
            [full_name] => Genevieve Bolduc
            [indexed] => 1
            [verified_identity] => Array
                (
                )

            [image_small_url] => https://s-media-cache-ak0.pinimg.com/avatars/AllieAlaska_1444327826_30.jpg
            [followed_by_me] => 
            [type] => user
            [id] => 493425840332222868
        )

    [domain] => huffingtonpost.com
    [image_signature] => 64fa4a49228821b6e00221cd9eb7984a
    [like_count] => 0
    [images] => Array
        (
            [736x] => Array
                (
                    [url] => https://s-media-cache-ak0.pinimg.com/736x/64/fa/4a/64fa4a49228821b6e00221cd9eb7984a.jpg
                    [width] => 480
                    [height] => 480
                )

            [60x60] => Array
                (
                    [url] => https://s-media-cache-ak0.pinimg.com/60x60/64/fa/4a/64fa4a49228821b6e00221cd9eb7984a.jpg
                    [width] => 60
                    [height] => 60
                )

            [474x] => Array
                (
                    [url] => https://s-media-cache-ak0.pinimg.com/474x/64/fa/4a/64fa4a49228821b6e00221cd9eb7984a.jpg
                    [width] => 474
                    [height] => 474
                )

            [600x315] => Array
                (
                    [url] => https://s-media-cache-ak0.pinimg.com/600x315/64/fa/4a/64fa4a49228821b6e00221cd9eb7984a.jpg
                    [width] => 480
                    [height] => 315
                )

            [564x] => Array
                (
                    [url] => https://s-media-cache-ak0.pinimg.com/564x/64/fa/4a/64fa4a49228821b6e00221cd9eb7984a.jpg
                    [width] => 480
                    [height] => 480
                )

            [236x] => Array
                (
                    [url] => https://s-media-cache-ak0.pinimg.com/236x/64/fa/4a/64fa4a49228821b6e00221cd9eb7984a.jpg
                    [width] => 236
                    [height] => 236
                )

            [136x136] => Array
                (
                    [url] => https://s-media-cache-ak0.pinimg.com/136x136/64/fa/4a/64fa4a49228821b6e00221cd9eb7984a.jpg
                    [width] => 136
                    [height] => 136
                )

            [orig] => Array
                (
                    [url] => https://s-media-cache-ak0.pinimg.com/originals/64/fa/4a/64fa4a49228821b6e00221cd9eb7984a.jpg
                    [width] => 480
                    [height] => 480
                )

        )

    [id] => 393994667383919015
    [price_currency] => USD
    [is_promoted] => 
    [description_html] => Lumberjack Cake
    [title] => Google Images
    [buyable_product] => 
    [comments] => Array
        (
            [bookmark] => 
            [data] => Array
                (
                )

            [uri] => /v3/pins/393994667383919015/comments/
        )

    [access] => Array
        (
        )

    [comment_count] => 0
    [board] => Array
        (
            [category] => other
            [is_collaborative] => 
            [layout] => default
            [description] => 
            [privacy] => public
            [url] => /dalechurch33/food/
            [image_cover_url] => https://s-media-cache-ak0.pinimg.com/custom_covers/200x150/393994736090160288_1462559037.jpg
            [pin_thumbnail_urls] => Array
                (
                    [0] => https://s-media-cache-ak0.pinimg.com/75x75/68/8a/15/688a1573b8c8dbf3544c0960a7f79ad1.jpg
                    [1] => https://s-media-cache-ak0.pinimg.com/75x75/64/fa/4a/64fa4a49228821b6e00221cd9eb7984a.jpg
                    [2] => https://s-media-cache-ak0.pinimg.com/75x75/47/26/fe/4726fe6f504374fff0a79e922d27d669.jpg
                    [3] => https://s-media-cache-ak0.pinimg.com/75x75/0f/9f/fb/0f9ffbba25c932b127b62476e7215b31.jpg
                    [4] => https://s-media-cache-ak0.pinimg.com/75x75/32/4c/b2/324cb27e8a95edf67f56c3eea829fc4d.jpg
                )

            [image_thumbnail_url] => https://s-media-cache-ak0.pinimg.com/upload/393994736090160288_board_thumbnail_2016-06-01-18-47-09_13574_60.jpg
            [access] => Array
                (
                )

            [owner] => Array
                (
                    [id] => 393994804809205480
                )

            [map_id] => pinterest.ijz1714i
            [followed_by_me] => 
            [type] => board
            [id] => 393994736090160288
            [name] => Food
        )

    [link_domain] => Array
        (
            [official_user] => Array
                (
                    [username] => huffingtonpost
                    [first_name] => Huffington Post
                    [domain_url] => www.huffingtonpost.com
                    [twitter_url] => https://twitter.com/HuffingtonPost
                    [domain_verified] => 1
                    [image_medium_url] => https://s-media-cache-ak0.pinimg.com/avatars/huffingtonpost_1443041980_75.jpg
                    [explicitly_followed_by_me] => 
                    [location] => New York, New York. 
                    [full_name] => Huffington Post
                    [indexed] => 1
                    [verified_identity] => Array
                        (
                            [verified] => 1
                            [name] => huffingtonpost
                        )

                    [image_small_url] => https://s-media-cache-ak0.pinimg.com/avatars/huffingtonpost_1443041980_30.jpg
                    [followed_by_me] => 
                    [type] => user
                    [id] => 52424920570792274
                )

        )

    [type] => pin
    [method] => extension
    [has_bad_category] => 
    [attribution] => 
    [description] => Lumberjack Cake
    [price_value] => 0
    [liked_by_me] => 
    [show_personalize_field] => 
    [is_playable] => 
    [rich_metadata] => 
    [via_pinner] => Array
        (
            [username] => brookedmoran
            [first_name] => Brooke πŸŽ€
            [domain_url] => 
            [twitter_url] => 
            [domain_verified] => 
            [image_medium_url] => https://s-media-cache-ak0.pinimg.com/avatars/brookedmoran_1445725875_75.jpg
            [explicitly_followed_by_me] => 
            [location] => 
            [full_name] => Brooke πŸŽ€ Moran
            [indexed] => 
            [verified_identity] => Array
                (
                )

            [image_small_url] => https://s-media-cache-ak0.pinimg.com/avatars/brookedmoran_1445725875_30.jpg
            [followed_by_me] => 
            [type] => user
            [id] => 463589492800891338
        )

    [link] => http://www.huffingtonpost.com/entry/elizabeth-marek-lumberjack-plaid-cake_us_566ef89ee4b0e292150e9368
    [is_repin] => 1
    [rich_recipe_top_ingredients] => Array
        (
        )

    [buyable_product_availability] => 
    [pinner] => Array
        (
            [username] => dalechurch33
            [first_name] => Dale
            [domain_url] => 
            [twitter_url] => 
            [domain_verified] => 
            [image_medium_url] => https://s-media-cache-ak0.pinimg.com/avatars/dalechurch33_1396967626_75.jpg
            [explicitly_followed_by_me] => 
            [location] => 
            [full_name] => Dale Church
            [indexed] => 1
            [verified_identity] => Array
                (
                )

            [image_small_url] => https://s-media-cache-ak0.pinimg.com/avatars/dalechurch33_1396967626_30.jpg
            [followed_by_me] => 
            [type] => user
            [id] => 393994804809205480
        )

    [repin_count] => 0
    [tracked_link] => http://www.huffingtonpost.com/entry/elizabeth-marek-lumberjack-plaid-cake_us_566ef89ee4b0e292150e9368
    [created_at] => Thu, 02 Jun 2016 22:29:53 +0000
    [privacy] => public
    [dominant_color] => #867c77
    [place] => 
    [embed] => 
    [is_video] => 
)

from php-pinterest-bot.

peterqtr11 avatar peterqtr11 commented on July 25, 2024

Hi @seregazhuk ,
I just create a new folder, get the new code and run again. Surprisingly, it works like a charm. Maybe the reason come from the fact that I don't use the latest version of the lib. Thank you for your quick response!

from php-pinterest-bot.

peterqtr11 avatar peterqtr11 commented on July 25, 2024

Hello @seregazhuk ,

Can you please also support an option to register a business account: "https://business.pinterest.com/en"

Thanks,

from php-pinterest-bot.

seregazhuk avatar seregazhuk commented on July 25, 2024

Hi, @huuvu1109 !
Try this:

Register a business account. The last parameter with website url is optional:

$bot->user->registerBusiness('[email protected]', 'password', 'BusinessName');

$bot->user->registerBusiness('[email protected]', 'password', 'BusinessName', 'http://yoursite.com');

Convert your account to a business one. Requires log in. The last parameter with website url is optional:

$bot->user->convertToBusiness('businessName');

$bot->user->convertToBusiness('businessName', 'http://yoursite.com');

from php-pinterest-bot.

peterqtr11 avatar peterqtr11 commented on July 25, 2024

Thank you very much @seregazhuk ,

Pinterest also allows to pin from a local file in computer. I think it's nice feature. Can you please also support that. Something like:

$pinId = $bot->pins->create('filename.jpg', $boards[0]['id'], 'pin description', 'http://site.com');

from php-pinterest-bot.

seregazhuk avatar seregazhuk commented on July 25, 2024

@huuvu1109 fixed. Just pass a path to your file, instead of url:

$pinId = $bot->pins->create('image.jpg', $boardId, 'description');

from php-pinterest-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.