Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

useresponse npm version

A useresponse API client. For a documentation on the API see https://api.useresponse.com.

Installation

Run yarn add useresponse or npm install useresponse.

Usage

A complete documentation is available at https://ffflorian.github.io/api-clients/packages/useresponse/.

Example

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 => {
    ...
  });

Build

yarn
yarn dist