A useresponse API client. For a documentation on the API see https://api.useresponse.com.
Run yarn add useresponse or npm install useresponse.
A complete documentation is available at https://ffflorian.github.io/api-clients/packages/useresponse/.
import {UseResponse} from 'useresponse';
const useResponse = new UseResponse({apiKey: 'your-api-key'});
useResponse
.api.objects.addObject({
content: 'How do I reset my password?',
object_type: 'ticket',
ownership: 'helpdesk',
title: 'Password reset help',
})
.then(data => {
...
});
useResponse
.api.comments.getComments()
.then(data => {
...
});
yarn
yarn dist