Download the PHP package hansott/pinterest-php without Composer

On this page you can find all versions of the php package hansott/pinterest-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pinterest-php

Scrutinizer Code Quality Code Coverage Packagist Packagist

Install

Via Composer

Donate

If you like this package, please consider buying me a coffee. Thank you for your support! 🙇‍♂️

Buy Me A Coffee

Usage

Authentication

To use the API, you need an access token from Pinterest. Create a new Pinterest application if you haven't already. You then get a client ID and a client secret, specific for that application.

Back in your PHP application, create a Pinterest\Http\ClientInterface instance (the default is Pinterest\Http\BuzzClient) and use it to create an Pinterest\Authentication instance:

Replace the $clientId and $clientSecret variables with the data of your Pinterest application.

You can now let your user authenticate with your application be redirecting them to the URL obtained by a call to $auth->getAuthenticationUrl(), like this:

When your application user agrees to let your app take control of their Pinterest account via the API, Pinterest will redirect them to the URL you provided as redirect URL, with some added GET parameters. The most important being "code", which we'll trade for an OAuth access token in the next step. They'll also send the validation state back to us as a GET parameter so we can check if we expected this call.

The last step in the process is trading that code for an access token:

You should persist that token safely at this point. You can use it from now on to connect to the Pinterest API from your application, on behalf of the user.

Initialize the Pinterest\Api class:

Using the Pinterest\Api instance in $api, you can now make authenticated API requests to Pinterest's API on behalf of the user.

Get the authenticated user

Get a user

Get a board

Update a board

Get the boards of the authenticated user

Get the pins of the authenticated user

Get the pins of a board

See Get the next items of a paged list

Get the followers of the authenticated user

See Get the next items of a paged list

Get the boards that the authenticated user follows

See Get the next items of a paged list

Get the users that the authenticated user follows

See Get the next items of a paged list

Get the interests that the authenticated user follows

Example: Modern architecture

See Get the next items of a paged list

Follow a user

Unfollow a user

Follow a board

Unfollow a board

Create a board

Delete a board

Create a pin

Get a pin

Update a pin

Delete a pin

Get the next items of a paged list

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email hansott at hotmail be instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of pinterest-php with dependencies

PHP Build Version
Package Version
Requires kriswallsmith/buzz Version v0.15
netresearch/jsonmapper Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hansott/pinterest-php contains the following files

Loading the files please wait ....