Post comment/reply for a topic


(UserXtreamz) #1

I am using following API request for commenting/replaying topic.Is it possible do this way?

or any other API available for this?“This is a post to a topic.”

Please suggest the better option

(Régis Hanol) #2

Not sure what you’re asking here. Is it possible to reply to a topic that way or is that the best way?

For the former, why don’t you try it and see if it works?

For the latter, you can also use the discourse-api if you’re using ruby.

(UserXtreamz) #3

Actually the above URL is not working .That’s why i asked any other option available for this?

(Régis Hanol) #4

pinging @techAPJ as he added that feature :wink:

(Kane York) #5

No, he added the “pre-fill composer with a title and body” feature.

@User143 is looking for something more like this:

Where DPostJsonTyped is a helper method that sends a HTTP POST request with authentication (and retrieves a strongly-typed JSON response).

(Régis Hanol) #6

Right, my bad. Will make some more :coffee:.