seregazhuk\PinterestBot\Api\ProvidersContainer::getClientInfo PHP Méthode

getClientInfo() public méthode

Simply proxies call to Response object.
public getClientInfo ( ) : array | null
Résultat array | null
    public function getClientInfo()
    {
        return $this->response->getClientInfo();
    }

Usage Example

Exemple #1
0
 /**
  * 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.
  *
  * @param bool $reload
  * @return array|null
  */
 public function getClientInfo($reload = false)
 {
     $clientInfo = $this->providersContainer->getClientInfo();
     if (is_null($clientInfo) || $reload) {
         $this->auth->visitMainPage();
     }
     return $this->providersContainer->getClientInfo();
 }
All Usage Examples Of seregazhuk\PinterestBot\Api\ProvidersContainer::getClientInfo