Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing params when run plugin #149

Open
dylan1951 opened this issue Feb 24, 2025 · 1 comment · May be fixed by #152
Open

Passing params when run plugin #149

dylan1951 opened this issue Feb 24, 2025 · 1 comment · May be fixed by #152
Assignees

Comments

@dylan1951
Copy link
Contributor

Some use cases would require a plugin to accept a parameter when it is run.

For example a game where you have many character profiles and you want to prove the level of a specific character.

Assume the endpoint to get character profile info is api.game.com/character/1234

In your website you would ask the user to first input the character ID they want to prove before executing the plugin.

The API could be something like client.runPlugin("6931d...", { characterId: 1234 }) and the parameter would be passed to the plugin.

@dylan1951
Copy link
Contributor Author

One consideration though is that the plugin couldn't be used from the popup unless a GUI was added to input the required parameters. Some extra complexity there..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants