Пример #1
0
 /**
  * @param MessageInterface $post
  * @return mixed
  */
 public function tweet(MessageInterface $post)
 {
     $request = $this->client->post('statuses/update.json', [], ["status" => $post->getBody()]);
     return $request->send();
 }
Пример #2
0
 /**
  * @param MessageInterface $post
  */
 public function post(MessageInterface $post)
 {
     $this->tumblrClient->createPost($post->getTitle(), array("body" => $post->getBody()));
 }
Пример #3
0
 /**
  * @param MessageInterface $post
  * @return mixed
  */
 public function post(MessageInterface $post)
 {
     return $this->facebook->api('/me/feed', 'POST', ['message' => $post->getBody()]);
 }