0

I am facing issue with a listing of tickets and users. I am able to create a ticket but not able to list, I tried both options list and search but not working

Here is my code of list API

zendesk.tickets.list().then(function(tickets){
    console.log(tickets);
  });

Here is a Response header of list API

Request URL: https://task-me-not.zendesk.com/api/v2//tickets.json
Request Method: OPTIONS
Status Code: 200 OK
Remote Address: 35.174.158.178:443
Referrer Policy: no-referrer-when-downgrade

I am using following library https://github.com/dashedstripes/zendesk-node-api

4

1 回答 1

0

你得到的响应是什么?你是如何执行的?从终端运行node filename,还是别的什么?

我刚试过这个,它输出我的票就好了

var Zendesk = require('zendesk-node-api'); 
var zendesk = new Zendesk({ url: URL, email: EMAIL, token: TOKEN }); zendesk.tickets.list().then(function(result){
  console.log(result); 
});
于 2018-09-05T15:05:04.523 回答