Jump to content

Appcontroller.preAction event handler in module


shota

Recommended Posts

Hi,

I'm currently creating a module which automatically provisions a server in game server panel when a customer purchases a service in Blesta.

This module sends a "server creation" request to a game server panel's API endpoint but this endpoint is asynchronous and just responses to the request with a running task ID. After server is created, the game server panel API will send another POST request which includes a server ID to a specific callback URL later.

To receive the server ID, I would like to use Appcontroller.preAction event handler in module but is it even possible?

I came up with the idea of creating a plugin only for receiving a server ID, but I feel having to enable both module and plugin is not a nice implementation. If anyone has any clean idea to make my dream come true, most welcomed.

Thanks,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...