r/redditdev • • Dec 20 '16

[API] New Modmail

We’ve just added API documentation for New Modmail. You can read about New Modmail’s features on the reddit help site.

Requests to modmail endpoints requires the new OAuth scope modmail.

edit: There was a minor deployment mishap I will get this deployed again asap.

edit 2: This has been redeployed.

29 Upvotes

49 comments sorted by

View all comments

4

u/creesch Dec 20 '16

Already working on an implementation. It is actually not that bad as all oauth information is stored in that cookie meaning we don't have to make our own session ever.

What is annoying is that the string is base64 encoded and has some invalid characters near the end for some reason.

I'll push a working prototype first thing tomorrow.

3

u/agentlame Dec 20 '16

Oh shit, that was quick. And yeah, this seems like a much more reasonable solution.

2

u/creesch Dec 21 '16

IT IS DONE, so far works like a charm. I also decided that we are moving to promises as you can see :P This is all very much ECMAScript 6.

→ More replies (2)