Jump to content

Import Usage Data from SQL Database


wellconnit

Recommended Posts

Hi All,

I use WHMCS to bill some customers for internet services, because there is no API from the ISP to get the usage values I can't directly API into their systems from WHMCS; however I can get a text file with all of the information - service ID, upload/download usage, last updated, etc, etc.

Just wondering the best way to get WHMCS to read this so that I can display the usage details(similar to the way that the disk space/bandwidth consumption is show for cPanel accounts).

The internet service will have a custom field that will have the service ID in it, so that WHMCS can just do a simple read from the SQL DB for the values.

I'm writing the script myself to take it from the text file to the SQL database so I can customise the data going in as needed.

Any ideas?

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