Is there an API endpoint to upload images to DEV.TO?
Dave Parr

Dave Parr @daveparr

About: Data-scientist who loves to use #datascienceforgood, especially in ecology, energy and the environment. Bonsai, gardening, bikes and music when I'm not at a keyboard.

Location:
Cardiff, Wales
Joined:
Mar 29, 2019

Is there an API endpoint to upload images to DEV.TO?

Publish Date: May 23 '20
3 5

I'm continuing to work on dev.to.ol. Some of the future work is sort of clear to me, but I'm still missing a big piece of the puzzle.

How can I take the charts (images) generated by the rendering of the .Rmd, and submit them to dev.to?

I'm not spotting a POST or PUT method in the api docs. Have I overlooked something, or is it something that might be a future feature?

Comments 5 total

  • Emma Goto 🍙
    Emma Goto 🍙Sep 9, 2020

    I actually want to know the answer to this too! (I came across this post when I googled it) any thoughts @ben?

    • Dave Parr
      Dave ParrSep 9, 2020

      Thanks for the interest. In the end I was pretty sure it wasn't exposed outside the Dev.to editor interface, so I went with GitHub as the 'Image Host', as convoluted as that is: github.com/DaveParr/dev.to.ol/tree...

      • Emma Goto 🍙
        Emma Goto 🍙Sep 9, 2020

        Interesting, that's actually really smart!

        • Ben Halpern
          Ben HalpernSep 10, 2020

          Yeah the way we do images has never lent itself to an api making much sense, but we’re re-organizing this and that may change in near future.

Add comment