Zomboided / service.vpn.manager

VPN plugin for Kodi
GNU General Public License v2.0
305 stars 81 forks source link

Third party API connection selection #353

Closed Forage closed 2 years ago

Forage commented 2 years ago

Hi,

I had a look at the API script to include in a third party add-on but it looks to me that an add-on would have to know the connection numbers available somehow before being able to connect to a specific config.

What I'm after is being presented with a list of available connections, if multiple are defined, allowing the user the select the one they need when the third party add-on decides to present this list. This would allow the add-on to connect to a VPN only when needed and the user to e.g. choose a specific country depending on the context.

Is there a way to do this already? If yes, how? If no, would it be a valid change to make in you add-on?

Zomboided commented 2 years ago

This is what the add-on does, did you try it? The API extends the use of it, but you don't need to use it to achieve what you've described.

Forage commented 2 years ago

I didn't try the add-on yet because I wanted to check if it does what I need first before I start integrating it.

I want your add-on to be called based on specific interactions by the user in a third party add-on. Not every time when using this third party add-on. This without the need for the user to know about the internals of either add-on. I don't see how this can be achieved without the API integration.