8

Does the devRant API provide for authenticating and posting new rants?

I've found several unofficial docs that mention grabbing rants and profiles but none that I've found have a method to post rants.

Comments
  • 2
    Yes, but iirc it's not public. Still it's not hard to figure out if you're good with chrome dev tools
  • 0
    @exelix Yeah, I was just reading the backend js. I've only skimmed it, so I'm not sure how it produces the rant id of the new rant. I just saw that it seems to use the same endpoint as displaying a rant by id. hmm.

    I ask this because I'm making a text-based app for devRant I can run in my terminal. It just took minutes to get it to read various things, but I am unsure of how to login and post or ++ anything.
  • 0
    You just need to use the tool to track network requests.
    You could also ask dfox
  • 0
    The auth key is in the GET request. Just take a look in the network requests tab.
  • 1
  • 0
    pxgamers php wrapper does.
  • 0
    @corscheid this is part of the source of an app i did (C#): https://gist.github.com/exelix11/...
    It can read newest rants, log in and post. It might not compile since i just hacked it together now (the original app was a plaintext html wrapper for the devrant api to read and post rants from arduino)
  • 3
    Check out the pydevrant source. It has all the auth you should need.
  • 2
    We don’t provide a method to authenticate yet but we’re going to in the future. Until then we don’t really allow/encourage apps that require login because they are generally unsafe since you’re giving your username and password.
  • 0
    we live in the same state!
Add Comment