seregazhuk\PinterestBot\Bot::getClientInfo PHP 메소드

getClientInfo() 공개 메소드

Returns client context from Pinterest response. By default info returns from the last Pinterest response. If there was no response before or the argument $reload is true, we make a dummy request to the main page to update client context.
public getClientInfo ( boolean $reload = false ) : array | null
$reload boolean
리턴 array | null
    public function getClientInfo($reload = false)
    {
        $clientInfo = $this->providersContainer->getClientInfo();
        if (is_null($clientInfo) || $reload) {
            $this->auth->visitMainPage();
        }
        return $this->providersContainer->getClientInfo();
    }