Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example for Usage Metrics, fix incorrect use of username which should be domain, add simulated API call example, add code comments #296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agileware-justin
Copy link

Was struggling to get the Usage Metrics working correctly when called by WHMCS cron, it turns out that the example code was incorrect.

This PR updates the example code for Usage Metrics.

  1. Fixes incorrect use of username which should be domain for the usage function
  2. Adds simulated API call example code
  3. Adds some code comments

… should be domain. Provide a simulated API call example code and add code comments
@agileware-justin
Copy link
Author

Found this related discussion which is relevant to these changes, https://whmcs.community/topic/297347-usage-metrics-not-updating/

@agileware-justin
Copy link
Author

@agileware-justin
Copy link
Author

I realise now too that this PR's apiCall example is still incorrect and should be improved. I'll do that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant