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