0.0.10 • Published 7 years ago
zendesk-client v0.0.10
Install
Install using npm:
npm install zendesk-clientAPI Documentation
Quick Start
import createClient from 'zendesk-client';
const client = createClient({
token : 'token',
url : 'https://[yoursubdomain].zendesk.com',
});
client.search.query('type:ticket status:open status:new')
.then((result) =>{
console.log(result)
})
.catch((error)=>{
console.log(error)
});Attachments
client.attachmentsupload(files)Tickets
client.ticketslist()
listByOrganization(orgId)
listByUserRequested(userId)
listByUserCCD(userId)
listByAssigned(userId)
listRecent()
show(ticketId)
showMany(ticketIds)
create(ticket)
createMany(tickets)
update(ticketId, ticket)
updateMany(ticketIds, ticket)
delete(ticketId)
deleteMany(ticketIds)
getComments(ticketId)Search
client.searchquery(searchTerm)Users
client.userslist()
listByGroup(groupId)
listByOrganization(orgId)
show(userId)
showMany(userIds)
me()OauthTokens
client.oauthtokenslist()
show(id)
current()