Jump to content

Webhook on new customer creation


omega1

Recommended Posts

Hello,

What I am trying to achieve is to send the data from a new customer creation on Blesta to our own dashboard, I'd like to capture name, email and password (md5 of course) and create the new user on our own dashboard. 

As such, I need to create a webhook that is triggered when a new customer is created.

I have looked at /core/Util/Events/Observers/Clients.php and suspect that I need to do something related to createBefore but I'm not sure how to do this.

Ideally I'd like to place a cURL somewhere that sends the new customer info over to our own API to have teh same user info created on our own platform.

Can anyone share any info on how I could achieve this please? I've tried adding some php code directly to /core/Util/Events/Observers/Clients.php withing the createBefore section but it did not work.

Thanks in advance.

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...