Strategy and overall workflow for a user we are building here:
Post request return an ID
Request status on that ID
Download the video associated with that ID
plumber.R work
Make the generate_from_gs endpoint return an id ONLY.
does the id need to be returned as a list? return(list(id = id))
IN the result endpoint, figure our where plumber::as_attachment(readBin(tmp_video, "raw", n = file.info(tmp_video)$size), "video.mp4") }), envir = promise_env) should go. Does it go in the result endpoint? This would make more sense to me.
plumber_functions.R work
Find out how to make sure that POST returns the generated id after generate_from_gs is run. Right now its got a httr::write_disk()
request_status figureout the httr handling and make sure id status is returned.
Strategy and overall workflow for a user we are building here:
plumber.R work
generate_from_gs
endpoint return an id ONLY.return(list(id = id))
result
endpoint, figure our whereplumber::as_attachment(readBin(tmp_video, "raw", n = file.info(tmp_video)$size), "video.mp4") }), envir = promise_env)
should go. Does it go in the result endpoint? This would make more sense to me.plumber_functions.R work
generate_from_gs
is run. Right now its got ahttr::write_disk()
request_status
figureout the httr handling and make sure id status is returned.download_video
make sure video is downloaded