public function storeTemporaryImage (Image $image)
    {
        $json = $this->storeGenericMedia(MediaType::IMAGE, false, $image);

        return (new Uploaded\Image($json->media_id))
            ->withExpiresDate($this->createExpiryDate($json->created_at));
    }
public function storeTemporaryImage (Image $image)
    {
        $json = $this->storeGenericMedia(MediaType::IMAGE, false, $image);

        return (new Uploaded\Image($json->media_id))
            ->withExpiresDate($this->createExpiryDate($json->created_at));
    }
public function storeTemporaryImage ( Image $ image ) { $ json = $ this -> storeGenericMedia ( MediaType :: IMAGE , false , $ image ) ; return ( new Uploaded \ Image ( $ json -> media_id ) ) -> withExpiresDate ( $ this -> createExpiryDate ( $ json -> created_at ) ) ; }
Uploads an image for temporary storage on the WeChat servers.

@param Image $image

@return Uploaded\Image
Uploads an image for temporary storage on the WeChat servers .