Jump to content

[API] Need help with customizing API


Elvis

Recommended Posts

I have gone through the API and am tring to make a API out of them. I read the https://docs.blesta.com/display/dev/API  but couldn't get more info out of it. So here's it :

What i am trying to do here is :

1. Verify client login details (email/pass) and fetch back the client ID through API.

2. Register a domain through API and add it to client ID's bill.

3. Update Nameservers through API if the domain belongs to the given client ID.

4. Renew the domain through API if it belongs to the given client ID.

 

Similarly for cPanel module, is it possible to make account through API against a client ID ?

E.g :

1. Verify client login details (email/pass) and fetch back the client ID

2. call the cpanel account creation hook with parameters : domain name, username, password , plan name and email id.

3. possible to upgrade the cpanel account through API ? e.g make prorated invoice and so on ?

4. Suspend / Terminated a account if it belongs to the given client ID.


5. Fetch cpanel details if it belongs to the given client ID.


Thanks for your time!

Link to comment
Share on other sites

Modules handle domain registration, and there are no endpoints directly to the module for any action. In that case, it may be better to have a plugin installed on the system with which you can call via the API instead, and then that plugin can load up the appropriate module/service/etc. and perform those actions--assuming, of course, that the module you're working with supports registering a domain, updating nameservers, and renewing it.

You can use the Users endpoint to verify credentials.

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