2.2.4 • Published 1 month ago

@useems/octadesk-api v2.2.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

octadesk-api

Node proxy to Octadesk APIs

npm version

Install

npm install @useems/octadesk-api

Usage

Use your API Token or your Octadesk credentials.

const octadeskAPI = require('octadesk-api')

let octadesk = new octadeskAPI('https://api.octadesk.services')
await octadesk.authenticate({ 'subdomain': 'YOUR_SUBDOMAIN', 'apitoken': 'octa.YOUR_API_TOKEN', 'username': 'A_VALID_USERNAME' })

/* or */

let octadesk = new octadeskAPI('https://api.octadesk.services')
await octadesk.authenticate({ 'subdomain': 'YOUR_SUBDOMAIN', 'username': 'A_VALID_USERNAME', 'password': 'THE_USER_PASSWORD' })

/* then */

octadesk.tags.get("")
    .then(tags => {
        tags.forEach(tag => {
            console.log(tag.name)
        })
    })

Functions

Company (octadesk.company)

Custom Fields (octadesk.customfields)

Forms (octadesk.forms)

Groups (octadesk.groups)

Help Center (octadesk.helpcenter)

Macros (octadesk.macros)

Organizations (octadesk.organizations)

  • organizations.get(id) - GET /{id}
  • organizations.create(organization) - POST /
  • organizations.update(organization) - PUT /{id}

Persons (octadesk.persons)

Products (octadesk.products)

Smart Forms (octadesk.smartforms)

Subjects (octadesk.subjects)

  • subjects.getAll() - GET /
  • subjects.get(id) - GET /{id}
  • subjects.search(keyword, onlyEnabledItems = true, invisibleToClient = true) - GET /search

Tags (octadesk.tags)

Tickets (octadesk.tickets)

Workflow (octadesk.workflow)

2.2.1

1 month ago

2.2.0

1 month ago

2.2.3

1 month ago

2.2.2

1 month ago

2.2.4

1 month ago

2.1.0

1 month ago

2.0.0

2 months ago