question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No documentation for `singleSendApi`

See original GitHub issue

As the title reads, could you provide documentation in the README to use the hubspotClient.marketing.transactional.singleSendApi.sendEmail method?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ksvirkou-hubspotcommented, Jan 5, 2022

I don’t understand you every request has an example with sdk for example Single_Send

const hubspot = require('@hubspot/api-client');

const hubspotClient = new hubspot.Client({"apiKey":"YOUR_HUBSPOT_API_KEY"});

const message = {
  "from": "string",
  "to": "string",
  "sendId": "string",
  "replyTo": [
    "string"
  ],
  "cc": [
    "string"
  ],
  "bcc": [
    "string"
  ]
};
const contactProperties = {
  "additionalProp1": "string",
  "additionalProp2": "string",
  "additionalProp3": "string"
};
const customProperties = {};
const PublicSingleSendRequestEgg = { message, contactProperties, customProperties, emailId: 0 };

try {
  const apiResponse = await hubspotClient.marketing.transactional.singleEmail.send.singleSendApi.sendEmail(PublicSingleSendRequestEgg);
  console.log(JSON.stringify(apiResponse.body, null, 2));
} catch (e) {
  e.message === 'HTTP request failed'
    ? console.error(JSON.stringify(e.response, null, 2))
    : console.error(e)
}
1reaction
royhadadcommented, Jan 4, 2022

@AquiGorka I am also struggling with this problem, did you figure it out?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Single Send | Twilio - SendGrid Documentation
The Single Sends API allows you to create, retrieve, update, delete, schedule, and deliver your Single Sends. There are also endpoints for searching...
Read more >
Send a single transactional email - HubSpot API
Any emails sent through this API will automatically be associated with contact records based on the email address. If there is no contact...
Read more >
Single-Send Journeys | Marketing Cloud APIs and SDKs
The Journey Builder developer documentation is based on multi-step journeys. You can employ single-send journeys for simple, single-use journeys that ...
Read more >
Messages | Mailchimp Transactional API Reference
Send, schedule, or get information on your emails. ... The denylist will be exported to a zip archive containing a single file named...
Read more >
User Manual — Mailgun API documentation
HTTP send will error with “parameter is not a valid address” if the provided ... send to a group of recipients through a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found