i have been working on Whmcs for a while now and i am trying to run a custom hook when Admin Accepts and order but there are two things that i am not sure of doing
How Can I call Api Of Whmcs From A Hook file?
What i want to do is when a Admin accepts an order, A hook runs and in that hook I am trying to get these things orderid *(which order is accepted by the admin and against which user)* and the client information can you please guide me through the generic steps involved