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

Error when create acc #515

Open fhartavi opened 4 years ago

fhartavi commented 4 years ago

Fatal error: Uncaught Error: Call to a member function register() on null in C:\Program Files\Ampps\www\pint\index.php:13 Stack trace: #0 {main} thrown in C:\Program Files\Ampps\www\pint\index.php on line 13 Giving this error with this code

<?php require('vendor/autoload.php'); use seregazhuk\PinterestBot\Api\Forms\Registration;

$registration = new Registration('youremail@asdasdsad.com', 'asdasdasdasd', 'mynameisa'); $registration ->setAge(30) ->setCountry('TR') ->setMaleGender(); // ->setFemaleGender()

$reg=$bot->auth->register($registration);

print_r($reg); ?>