tsasano Posted September 7, 2022 Report Posted September 7, 2022 Hi! I'm fiddling around with a test installation of phpVMS 7 and already really like it. There is one thing I didn't find information about, no idea if this even is possible to achieve in a simple way. It would be nice to have all active pilots from phpVMS in a group/role on our discord server. The reason: I'd like to restrict access to the ACARS reporting messages to active pilots only without having to edit that group/role all the time. Did I miss something really obvious (which I absolutely consider being possible)? Thanks in advance and thank you for sharing your phantastic work! Cheers Yoshi Quote
DisposableHero Posted September 7, 2022 Report Posted September 7, 2022 You did not miss something, there is no such feature in v7 As of date, you can "only" send messages to your discord server via webhooks. The feature you want to have needs much more than that (like direct api access, user validation, server management etc) Safe flights Quote
Asimo Posted September 7, 2022 Report Posted September 7, 2022 Read the database and use a bot on your discord server could track this information to apply commands to change the roles of your users. Question for @DisposableHero: "Can the PhpVMS API retrieve information from a user? Or obtain a XML-like (or Json) of users ?" Quote
DisposableHero Posted September 7, 2022 Report Posted September 7, 2022 21 minutes ago, Asimo said: Read the database and use a bot on your discord server could track this information to apply commands to change the roles of your users. Question for @DisposableHero: "Can the PhpVMS API retrieve information from a user? Or obtain a XML-like (or Json) of users ?" Nice idea (custom bot at discord), even though v7's current api endpoints do not provide a "roster" or "users" output, one can always have it with a custom module/code. As an example you can check below links, they all work with api endpoints (json) https://www.turksim.org/roster.php https://www.thyva.com https://thyva.com/pilots.php Current v7 default api endpoints are explained here; https://docs.phpvms.net/api/apis This may help or give some ideas Safe flights Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.