1.15.1 • Published 9 months ago

@epilot/message-client v1.15.1

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
9 months ago

@epilot/message-client

CI npm version bundle size License

API Client for epilot Message API.

Uses openapi-client-axios

Installation

npm install --save @epilot/message-client

Usage

import { getClient } from '@epilot/message-client';
const messageClient = getClient();
const sendResponse = await messageClient.sendMessage(null, {
  "thread": {
    "topic": "CUSTOMER_MESSAGE",
    "assigned_to": [
      "206801",
      "200109"
    ],
    "opportunity_id": 829072
  },
  "parent_id": "44d7a3eb-0cce-4bd3-a7cd-0b3e652de0c2",
  "subject": "Request for solar panel price",
  "html": "<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>",
  "text": "We at ABC GmbH would like to request a price quote for the solar panel.",
  "from": {
    "name": "epilot",
    "address": "messaging@epilot.cloud",
    "send_status": "SEND",
    "send_error": {}
  },
  "reply_to": {
    "name": "epilot",
    "address": "messaging@epilot.cloud",
    "send_status": "SEND",
    "send_error": {}
  },
  "to": [
    {
      "name": "epilot",
      "address": "messaging@epilot.cloud",
      "send_status": "SEND",
      "send_error": {}
    }
  ],
  "cc": [
    {
      "name": "epilot",
      "address": "messaging@epilot.cloud",
      "send_status": "SEND",
      "send_error": {}
    }
  ],
  "bcc": [
    {
      "name": "epilot",
      "address": "messaging@epilot.cloud",
      "send_status": "SEND",
      "send_error": {}
    }
  ],
  "file": {
    "$relation": [
      {
        "entity_id": "f820ce3b-07b0-45ae-bcc6-babb2f53f79f",
        "filename": "Produktinformationen_epilot360_Double_Opt_in.pdf",
        "is_message_attachment": true,
        "cid": "fb222496-a1a5-4639-94f2-07b5e35e4068",
        "inline": false,
        "send_as_link": false
      }
    ]
  }
});

Documentation

https://docs.epilot.io/docs/messaging/message-api

1.15.0

9 months ago

1.14.0

9 months ago

1.13.0

10 months ago

1.10.3

1 year ago

1.12.0

11 months ago

1.10.2

1 year ago

1.15.1

9 months ago

1.9.0

1 year ago

1.7.1

10 months ago

1.8.0

1 year ago

1.11.0

12 months ago

1.10.1

1 year ago

1.10.0

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago