분류
php
API 계정 자격 증명을 사용하지 않고도 Pinterest 계정으로 작업하는 데 도움이 되는 라이브러리
본문
Pinterest API에 액세스하려면 developers.pinterest.com으로 이동하여 개발자로 등록한 다음 응용 프로그램을 등록한 다음 확인을 기다리면 액세스 토큰을 얻게 됩니다.
또한 공개 API는 매우 열악하고 기능이 매우 제한적입니다. 이 라이브러리를 사용하면 Pinterest 웹 사이트에서 사용할 수 있는 전체 기능 세트가 있습니다.
또한 액세스 토큰을 받기 위해 애플리케이션을 등록 할 필요가 없습니다.
브라우저에서와 같이 계정 로그인 및 비밀번호 만 사용하십시오.
그러나 핀 만들기, 주석 쓰기 또는 메시지 보내기와 같은 작업을 사용하지 않으면 계정조차 필요하지 않습니다!
https://github.com/seregazhuk/php-pinterest-bot
composer require seregazhuk/pinterest-bot
// You may need to amend this path to locate Composer's autoloader require('vendor/autoload.php'); use seregazhuk\PinterestBot\Factories\PinterestBot; $bot = PinterestBot::create(); // Login $bot->auth->login('mypinterestlogin', 'mypinterestpassword'); // Get lists of your boards $boards = $bot->boards->forUser('yourUserName'); // Create a pin $bot->pins->create('http://exmaple.com/image.jpg', $boards[0]['id'], 'Pin description');
- 이전글composer.json을 정규화 하기 위한 composer 플러그인을 제공 19.12.14
- 다음글VCard 및 iCalendar 객체를 구문 분석하기 위한 PHP 라이브러리 19.12.14