public function storeTemporaryNews (News $news)
    {
        $json = $this->storeNews('https://api.weixin.qq.com/cgi-bin/media/uploadnews', $news);

        return (new Uploaded\News($json->media_id))->withExpiresDate($this->createExpiryDate($json->created_at));
    }
public function storeTemporaryNews (News $news)
    {
        $json = $this->storeNews('https://api.weixin.qq.com/cgi-bin/media/uploadnews', $news);

        return (new Uploaded\News($json->media_id))->withExpiresDate($this->createExpiryDate($json->created_at));
    }
public function storeTemporaryNews ( News $ news ) { $ json = $ this -> storeNews ( 'https://api.weixin.qq.com/cgi-bin/media/uploadnews' , $ news ) ; return ( new Uploaded \ News ( $ json -> media_id ) ) -> withExpiresDate ( $ this -> createExpiryDate ( $ json -> created_at ) ) ; }
Upload a news item for temporary storage. It will expire after 3 days, but we'll set the expiry to 2 days, to be
safe when it comes to time zones.

@param News $news

@return Uploaded\News
Upload a news item for temporary storage . It will expire after 3 days but we ll set the expiry to 2 days to be safe when it comes to time zones .