Jump to content

Widget Question


Trle94

Recommended Posts

Hello everyone,
So I am currently trying to build all in one widget that will display current balance from our domain registars, enom, reseller club and so on..
Can you please tell me is it possible and how to take api user and pw that are already placed into Domain Registrars(configureregistars.php) page.  So we have registrars already configured and API details are saved somewhere.
Is it possible to reuse somehow in widget code that saved api details?

Link to comment
Share on other sites

On 26/02/2020 at 10:04, Trle94 said:

Can you please tell me is it possible and how to take api user and pw that are already placed into Domain Registrars(configureregistars.php) page.  So we have registrars already configured and API details are saved somewhere.

the values would be in the tblregistrars table.

On 26/02/2020 at 10:04, Trle94 said:

Is it possible to reuse somehow in widget code that saved api details?

they would have to be decrypted first - though generally from the balance widgets i've seen, they rarely seem to use the existing details.

Link to comment
Share on other sites

14 hours ago, Trle94 said:

So since i see registars enom php script one file is encrypted other one is clean, i guess i could include it and just call username and password from that script into my widget?

have you seen the free eNom balance widget in Marketplace...?

https://marketplace.whmcs.com/product/5292

you can download it from their GitHub page and use that as your testing of the enom code...

14 hours ago, Trle94 said:

Or is it possible to decrypt values from tblregistrar?

do you mean by pulling the values from the database and using the php decrypt() command ?

try replacing the username & password values in the widget code with those decrypted values from the tblregistrars table and see if it works.

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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated