Abraham\TwitterOAuth\TwitterOAuth::getLastBody PHP Method

getLastBody() public method

public getLastBody ( ) : array | object | null
return array | object | null
    public function getLastBody()
    {
        return $this->response->getBody();
    }

Usage Example

コード例 #1
0
 /**
  * @param Article $article
  * @param string $header
  */
 public function provide(Article $article, $header = "")
 {
     $this->twitter->post("statuses/update", array("status" => "{$header} {$article->getTitle()} >> http://matomepp.net/p/{$article->getArticleId()}"));
     if ($this->twitter->getLastHttpCode() != 200) {
         throw new \RuntimeException(json_encode($this->twitter->getLastBody()));
     }
     $this->storeTweets($article);
 }
All Usage Examples Of Abraham\TwitterOAuth\TwitterOAuth::getLastBody