Need feedback for plugin programming test

Hello, I wanted to know if it is possible, based on your knowledge, to develop a plugin that uses an API (BGG v2 API). Basically, I would like to add a game search button to the topic toolbar. Here is the diagram:

User clicks “BGG”

Search modal opens (JavaScript)

Enter the game name

Discourse API → BoardGameGeek API

Results displayed

Select a game

Full details loaded

Click “Insert”

Formatted text inserted into the topic

Is this possible?

I have already done tests with ia but I saw that it uses net/http and nokogiri

Thank you for your help.

Who is the user performing the action? The OP? A Staff member?

This might be possible with a Theme Component, if there is no database interaction and uses network requests without sensitive data.

It is the user who creates a topic and then clicks on BGG search (game). They enter the game search which is found by the BGG XML API and they validate the search which will integrate into the topic

I don’t know if I answered the question well :sweat_smile:

1 Like

I see. Correct my if I’m wrong, but I think the API requires an Authorization key which should not be shared? So then a plugin is better. I think it’s quite possible to do this with a plugin - go for it!

Yes, a key is indeed required

1 Like

I’m going to try to code :rofl:

2 Likes

Well, I think I need some help because I’m starting my plugin and I’m a beginner in programming and I’m trying to understand.

I’m trying to solve this problem under Discourse

I still have a few problems with my buttons :rofl: