Jump to content

Using an API token instead of an access hash


CassidyDNS

Recommended Posts

I've almost finished developing my own server module, however, I'd like to provide the option for using a password or API key (instead of the access hash). I can see that some server modules like cPanel provide an API key instead of an access hash, but I can't find any docs on how to make it use that instead. I've searched Google, etc as well and I can't find anything on how to do this.

Would anyone here be able to help please?

Link to comment
Share on other sites

Hi:

I've tested. I guess it's hardcoded in WHMCS, if you name your module "cpanel" the module will show the API Token field, so the module does not control if the "API Token" field appears, it's WHMCS.

Just use the "access hash" field to set the token, or use JS (via hook) to change the display of "#newToken" and "#newHash" fields whenever #addType is changed.

Regards.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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