Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Shockbyte/whmcs-node
Browse files Browse the repository at this point in the history
  • Loading branch information
Niek van Gogh committed Oct 24, 2020
2 parents faf907b + cedec37 commit 60c3ff1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# whmcs-node

A Typescript/Javascript API wrapper for WHMCS.

## Example use

`npm i whmcs-node`

```js
// typescript
import 'WhmcsApi' from 'whmcs-node';

// javascript
const WhmcsApi = require('whmcs-node')

const whmcs = new WhmcsApi({
identifier: "",
secret: "",
apiUrl: "https://example.com/billing/includes/api.php"
});

whmcs.tickets.getTicketCounts({})
.then((data) => console.log(data))
.catch((err) => console.error(err))
```

0 comments on commit 60c3ff1

Please sign in to comment.