Creating a Topic using Ruby

G’day

I’m looking for some sample ruby code to create a topic with tags, in a category with one boxing of links where possible.

Is there a repository of example ruby code to use with Discourse?

Cheers and thanks!

See:

2 Likes

That looks like the API documentation - is there Ruby documentation?

There is the Discourse API gem see: GitHub - discourse/discourse_api: Ruby API for Discourse

2 Likes

Is there a Python version / SDK?

There is no official Python API/SDK for Discourse. There might be something unofficial out there but I’m not aware.

2 Likes

You might want to take a look at the collection of import scripts, they contain pretty clear code on the basics.

4 Likes