[api] create new post with custom author?


(Metali) #1

Hello,

I’m currently working on a site with Wordpress and Discourse, and I want to let my members add new posts from Wordpress (using Discourse api).
The system works but the new post’s author is always the admin, with the registered API key. Any way to transmit a custom author’s username to link the new post to this user?

Thanks!


(Michael Downey) #2

If you are an admin, you can generate an API key for that specific user, and then use that key instead of the general one.


(Metali) #3

Thanks for the trick, but I was wondering if it was the only solution (I wanted to avoid this way) :smile: