Namespace: hs/social

hs/social

A collection of methods related to the Social API

Methods

hs/social.createBroadcastMessage (opts)Promise asyncstatic

Create a broadcast message

Name Type Description
opts object
Properties:
Name Type Description
opts.channelGuid string
opts.status string
opts.triggerAt int
opts.body string
opts.photoUrl string
Returns:
Type Description
Promise
Example
const hs = new HubspotClient(props);
hs.social.createBroadcastMessage(opts).then(response => console.log(response));

hs/social.getPublishingChannels ()Promise asyncstatic

Get publishing channels for selected portal

Returns:
Type Description
Promise
Example
const hs = new HubspotClient(props);
hs.social.getPublishingChannels().then(response => console.log(response));