r-lib / httr

httr: a friendly http package for R
https://httr.r-lib.org
Other
986 stars 1.99k forks source link

GET API calls to pull PDF and PNG files #716

Closed gadepallivs closed 2 years ago

gadepallivs commented 2 years ago

This was a working code, but does not work now. Any update to the packages that could have caused it ?

httr::GET(
 url ="https://public.tableau.com/app/profile/joti.gautam/viz/Book3_16512272064090/Dashboard.pdf",
 httr::write_disk(here::here("test.pdf"),overwrite = T),
  httr::progress()
)
gadepallivs commented 2 years ago

this url worked url <- paste0("https://public.tableau.com/views/Book3_16512272064090/", "Dashboard.pdf?%3Adisplay_static_image=y&%3AbootstrapWhenNotified=", "true&%3Aembed=true&%3Alanguage=en-US&:embed=y&:showVizHome=n", "&:apiID=host1#navType=0&navSrc=Parse")