BotServer
BotServer copied to clipboard
New BASIC keyword ACTIVE TASKS
list = ACTIVE TASKS should return all active tasks from all users in HubSpot.
Calling HUB SPOT from .gbdialog:
key = "ddcc3f4e-edfe-4dc5-a337-"
talk “Obtendo tarefas do XRM...”
dados = GET https://api.hubapi.com/engagements/v1/engagements/paged?hapikey= + key
@rodrigorodriguez ocorrendo erro ao executar script:

2022-01-17T13:32:35.306Z [GeneralBots] [32minfo[39m: GBWhatsapp: RCV 5521979047667(): /call hubspot)
2022-01-17T13:32:36.134Z [GeneralBots] [32minfo[39m: User>: text:/call hubspot (type: message, name: undefined, channelId: webchat, value: undefined)
2022-01-17T13:32:36.309Z [GeneralBots] [32minfo[39m: Translated text(sendText): Obtendo tarefas do XRM....
2022-01-17T13:32:37.380Z [GeneralBots] [32minfo[39m: Message [Obtendo tarefas do XRM...] sent to 5521979047667: {"sent":true,"message":"Sent to [email protected]","id":"[email protected]_3EB044D89EF099EF81A1","queueNumber":5291}
2022-01-17T13:32:38.031Z [GeneralBots] [31merror[39m: ERROR: BASIC ERROR: 401 - "{"status":"error","message":"This hapikey doesn't exist.","correlationId":"b278c4d2-c69c-4139-af0c-6e2c8b327943"}"Stack:StatusCodeError: 401 - "{"status":"error","message":"This hapikey doesn't exist.","correlationId":"b278c4d2-c69c-4139-af0c-6e2c8b327943"}"at new StatusCodeError (D:\home\site\wwwroot\node_modules\request-promise-core\lib\errors.js:32:15)at Request.plumbing.callback (D:\home\site\wwwroot\node_modules\request-promise-core\lib\plumbing.js:104:33)at Request.RP$callback [as _callback] (D:\home\site\wwwroot\node_modules\request-promise-core\lib\plumbing.js:46:31)at Request.self.callback (D:\home\site\wwwroot\node_modules\request\request.js:185:22)at Request.emit (events.js:315:20)at Request.