0.0.1 • Published 4 years ago
@freshworks/freshdesk v0.0.1
Overview
Freshdesk SDK - a javaScript SDK for Freshdesk APIs
Getting Started
Usage via NPM
- To install, run:
npm install @freshworks/freshdesk --save
- Execute the following JS code to get ticket details:
let Freshdesk = require('@freshworks/freshdesk');
let fd = new Freshdesk({ domain: 'sample.freshdesk.com', api_key: 'xxxxxxxxx' });
fd.tickets.getTicket(12345, {'include': 'conversations'}).then(function (result) {
console.info('Data');
console.info(result);
}).catch(function (error) {
console.error('Error');
console.error(error);
});
Usage via CDN
- In your application HTML file, add the following script:
<script src="https://unpkg.com/@freshworks/freshdesk/dist/freshdesk.js">
</script>
- Execute the following JS code to get ticket details:
let fd = new Freshdesk({ domain: 'sample.freshdesk.com', api_key: 'xxxxxxxxx' });
fd.tickets.getTicket(12345, {'include': 'conversations'}).then(function (result) {
console.info('Data');
console.info(result);
}).catch(function (error) {
console.error('Error');
console.error(error);
});
Refer to the documentation for more details.
Authorization
basicAuth
- Type: HTTP basic authentication
0.0.1
4 years ago
0.0.1-beta.5
4 years ago
0.0.1-beta.4
4 years ago
0.0.1-beta.3
4 years ago
0.0.1-beta.2
4 years ago
0.0.3-beta.3
4 years ago
0.0.3-beta.2
4 years ago
0.0.1-beta.1
4 years ago
0.0.2
4 years ago
0.0.1-beta
4 years ago
0.0.3
4 years ago