From 6283bef93226da8e33822ca03c6d8f037c58dcaa Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 22 Nov 2019 14:00:19 +0000 Subject: [PATCH] Auto-update --- README.md | 199 +++++++++++++++++++++++++----- docs/AssetApi.md | 8 +- docs/CampaignApi.md | 6 +- docs/TransactionalMessagingApi.md | 44 +++---- package.json | 2 +- 5 files changed, 200 insertions(+), 59 deletions(-) diff --git a/README.md b/README.md index fb9b9cf..0cc4dfc 100644 --- a/README.md +++ b/README.md @@ -1,42 +1,183 @@ -# Salesforce Marketing Cloud - Autogenerated SDK +# This project is under development -## Overview +# salesforce-marketing-cloud-sdk -The Salesforce Marketing Cloud Node.js SDK enables developers to easily access the Salesforce Marketing Cloud. +SalesforceMarketingCloud - JavaScript client for salesforce-marketing-cloud-sdk +Marketing Cloud's REST API is our newest API. It supports multi-channel use cases, is much more lightweight and easy to use than our SOAP API, and is getting more comprehensive with every release. +This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- This is an upgraded version of the existing community supported [Fuel-Node](https://github.com/salesforce-marketingcloud/FuelSDK-Node) SDK -- Unlike the [Fuel-Node](https://github.com/salesforce-marketingcloud/FuelSDK-Node), this SDK is auto generated using [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) +- API version: 1.0.0 +- Package version: 1.0.0 +- Build package: io.swagger.codegen.languages.JavascriptClientCodegen -## Supported Features +## Installation -- [Transactional Messaging](https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/transactional-messaging-api.htm) +### For [Node.js](https://nodejs.org/) -## Environment Requirements +#### npm -- Node.js >= 12.10.0 +To publish the library as a [npm](https://www.npmjs.com/), +please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages). -## Download +Then install it via: -To consume this SDK, add the [Salesforce Marketing Cloud SDK](https://www.npmjs.com/package/salesforce-marketing-cloud-sdk) to your project using the following command: +```shell +npm install salesforce-marketing-cloud-sdk --save +``` -```npm install --save salesforce-marketing-cloud-sdk``` +#### git +# +If the library is hosted at a git repository, e.g. +https://github.com/GIT_USER_ID/GIT_REPO_ID +then install it via: -## Getting Started - -To find more information on how to consume the SDK, Refer to the [Regression tests](https://github.com/salesforce-marketingcloud/mcsdk-automation-node/tree/master/test/integration/api) or the [Code Samples](https://github.com/salesforce-marketingcloud/mcsdk-automation-node/tree/master/test/samples) - -### Note +```shell +npm install GIT_USER_ID/GIT_REPO_ID --save +``` -- Most of the code in this repo is auto generated from the [mcsdk-automation-framework-core](https://github.com/salesforce-marketingcloud/mcsdk-automation-framework-core) and the [mcsdk-automation-framework-node](https://github.com/salesforce-marketingcloud/mcsdk-automation-framework-node) repos. Other features like authentication flow, caching are directly implemented in this repo. -- If any change is needed in the auto generated code, it has to come from the [mcsdk-automation-framework-core](https://github.com/salesforce-marketingcloud/mcsdk-automation-framework-core) or the [mcsdk-automation-framework-node](https://github.com/salesforce-marketingcloud/mcsdk-automation-framework-node) repos. -- If any change is needed in the auth flow or caching, it should be done in this repo. - -## Contact us - -- Request a [new feature](https://github.com/salesforce-marketingcloud/mcsdk-automation-node/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc), add a question or report a bug on GitHub. -- Vote for [Popular Feature Requests](https://github.com/salesforce-marketingcloud/mcsdk-automation-node/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) by making relevant comments and add your reaction. Use a reaction in place of a "+1" comment: - - 👍 - upvote - - 👎 - downvote +## Getting Started -## License -By contributing your code, you agree to license your contribution under the terms of the [BSD 3-Clause License](https://github.com/salesforce-marketingcloud/mcsdk-automation-node/blob/master/license.md). \ No newline at end of file +Please follow the [installation](#installation) instruction and execute the following JS code: + +### Usage scenarios +#### Using the Client class with the configuration passed through environment variables + +```javascript +const SalesforceMarketingCloud = require('salesforce-marketing-cloud-sdk'); +const Client = require('salesforce-marketing-cloud-sdk/src/Api/Client'); + +let client = new Client(); +let assetApi = client.assetApi; + +let asset = AssetFactory.create(); // your own implementation of an asset factory that sets at least the mandatory properties +let createAssetResult = assetApi.createAsset(asset); + +createAssetResult.then(data => { + console.log(data); +}, reason => { + console.error(reason); +}); + +``` + +#### Authentication environment variables: +- SFMC_AUTH_BASE_URL +- SFMC_CLIENT_ID +- SFMC_CLIENT_SECRET +- SFMC_ACCOUNT_ID +- SFMC_SCOPE (space-separated list of data-access permissions for your application - optional parameter) + +#### Transactional Messaging integration tests environment variables: +- SFMC_COUNTRY_CODE +- SFMC_KEYWORD +- SFMC_SHORT_CODE + + +#### Using the Client class with the configuration passed through a configuration object + +```javascript +const SalesforceMarketingCloud = require('salesforce-marketing-cloud-sdk'); +const Client = require('salesforce-marketing-cloud-sdk/src/Api/Client'); + +const config = { + authBaseUrl: 'YOUR AUTH BASE URL', + clientId: 'YOUR CLIENT ID', + clientSecret: 'YOUR CLIENT SECRET', + accountId: 'YOUR ACCOUNT ID', + scope: 'SPACE-SEPARATED LIST OF DATA-ACCESS PERMISSIONS FOR YOUR APPLICATION' // optional parameter +}; + +// Transactional Messaging integration tests config parameters: + +config.shortCode = 'YOUR SHORT CODE'; +config.keyWord = 'YOUR KEY WORD'; +config.countryCode = 'YOUR COUNTRY CODE'; + +let client = new Client(config); +let assetApi = client.assetApi; + +let asset = AssetFactory.create(); // your own implementation of an asset factory that sets at least the mandatory properties +let createAssetResult = assetApi.createAsset(asset); + +createAssetResult.then(data => { + console.log(data); +}, reason => { + console.error(reason); +}); + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://www.exacttargetapis.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*SalesforceMarketingCloud.AssetApi* | [**createAsset**](docs/AssetApi.md#createAsset) | **POST** /asset/v1/content/assets | createAsset +*SalesforceMarketingCloud.AssetApi* | [**deleteAssetById**](docs/AssetApi.md#deleteAssetById) | **DELETE** /asset/v1/content/assets/{id} | deleteAssetById +*SalesforceMarketingCloud.AssetApi* | [**getAssetById**](docs/AssetApi.md#getAssetById) | **GET** /asset/v1/content/assets/{id} | getAssetById +*SalesforceMarketingCloud.AssetApi* | [**partiallyUpdateAssetById**](docs/AssetApi.md#partiallyUpdateAssetById) | **PATCH** /asset/v1/content/assets/{id} | partiallyUpdateAssetById +*SalesforceMarketingCloud.CampaignApi* | [**createCampaign**](docs/CampaignApi.md#createCampaign) | **POST** /hub/v1/campaigns | createCampaign +*SalesforceMarketingCloud.CampaignApi* | [**deleteCampaignById**](docs/CampaignApi.md#deleteCampaignById) | **DELETE** /hub/v1/campaigns/{id} | deleteCampaignById +*SalesforceMarketingCloud.CampaignApi* | [**getCampaignById**](docs/CampaignApi.md#getCampaignById) | **GET** /hub/v1/campaigns/{id} | getCampaignById +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**createEmailDefinition**](docs/TransactionalMessagingApi.md#createEmailDefinition) | **POST** /messaging/v1/email/definitions/ | createEmailDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**createSmsDefinition**](docs/TransactionalMessagingApi.md#createSmsDefinition) | **POST** /messaging/v1/sms/definitions | createSmsDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**deleteEmailDefinition**](docs/TransactionalMessagingApi.md#deleteEmailDefinition) | **DELETE** /messaging/v1/email/definitions/{definitionKey} | deleteEmailDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**deleteQueuedMessagesForEmailDefinition**](docs/TransactionalMessagingApi.md#deleteQueuedMessagesForEmailDefinition) | **DELETE** /messaging/v1/email/definitions/{definitionKey}/queue | deleteQueuedMessagesForEmailDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**deleteQueuedMessagesForSmsDefinition**](docs/TransactionalMessagingApi.md#deleteQueuedMessagesForSmsDefinition) | **DELETE** /messaging/v1/sms/definitions/{definitionKey}/queue | deleteQueuedMessagesForSmsDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**deleteSmsDefinition**](docs/TransactionalMessagingApi.md#deleteSmsDefinition) | **DELETE** /messaging/v1/sms/definitions/{definitionKey} | deleteSmsDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**getEmailDefinition**](docs/TransactionalMessagingApi.md#getEmailDefinition) | **GET** /messaging/v1/email/definitions/{definitionKey} | getEmailDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**getEmailDefinitions**](docs/TransactionalMessagingApi.md#getEmailDefinitions) | **GET** /messaging/v1/email/definitions/ | getEmailDefinitions +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**getEmailSendStatusForRecipient**](docs/TransactionalMessagingApi.md#getEmailSendStatusForRecipient) | **GET** /messaging/v1/email/messages/{messageKey} | getEmailSendStatusForRecipient +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**getEmailsNotSentToRecipients**](docs/TransactionalMessagingApi.md#getEmailsNotSentToRecipients) | **GET** /messaging/v1/email/messages/ | getEmailsNotSentToRecipients +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**getQueueMetricsForEmailDefinition**](docs/TransactionalMessagingApi.md#getQueueMetricsForEmailDefinition) | **GET** /messaging/v1/email/definitions/{definitionKey}/queue | getQueueMetricsForEmailDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**getQueueMetricsForSmsDefinition**](docs/TransactionalMessagingApi.md#getQueueMetricsForSmsDefinition) | **GET** /messaging/v1/sms/definitions/{definitionKey}/queue | getQueueMetricsForSmsDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**getSMSsNotSentToRecipients**](docs/TransactionalMessagingApi.md#getSMSsNotSentToRecipients) | **GET** /messaging/v1/sms/messages/ | getSMSsNotSentToRecipients +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**getSmsDefinition**](docs/TransactionalMessagingApi.md#getSmsDefinition) | **GET** /messaging/v1/sms/definitions/{definitionKey} | getSmsDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**getSmsDefinitions**](docs/TransactionalMessagingApi.md#getSmsDefinitions) | **GET** /messaging/v1/sms/definitions | getSmsDefinitions +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**getSmsSendStatusForRecipient**](docs/TransactionalMessagingApi.md#getSmsSendStatusForRecipient) | **GET** /messaging/v1/sms/messages/{messageKey} | getSmsSendStatusForRecipient +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**partiallyUpdateEmailDefinition**](docs/TransactionalMessagingApi.md#partiallyUpdateEmailDefinition) | **PATCH** /messaging/v1/email/definitions/{definitionKey} | partiallyUpdateEmailDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**partiallyUpdateSmsDefinition**](docs/TransactionalMessagingApi.md#partiallyUpdateSmsDefinition) | **PATCH** /messaging/v1/sms/definitions/{definitionKey} | partiallyUpdateSmsDefinition +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**sendEmailToMultipleRecipients**](docs/TransactionalMessagingApi.md#sendEmailToMultipleRecipients) | **POST** /messaging/v1/email/messages/ | sendEmailToMultipleRecipients +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**sendEmailToSingleRecipient**](docs/TransactionalMessagingApi.md#sendEmailToSingleRecipient) | **POST** /messaging/v1/email/messages/{messageKey} | sendEmailToSingleRecipient +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**sendSmsToMultipleRecipients**](docs/TransactionalMessagingApi.md#sendSmsToMultipleRecipients) | **POST** /messaging/v1/sms/messages/ | sendSmsToMultipleRecipients +*SalesforceMarketingCloud.TransactionalMessagingApi* | [**sendSmsToSingleRecipient**](docs/TransactionalMessagingApi.md#sendSmsToSingleRecipient) | **POST** /messaging/v1/sms/messages/{messageKey} | sendSmsToSingleRecipient + + +## Documentation for Models + + - [SalesforceMarketingCloud.ApiError](docs/ApiError.md) + - [SalesforceMarketingCloud.Asset](docs/Asset.md) + - [SalesforceMarketingCloud.AssetType](docs/AssetType.md) + - [SalesforceMarketingCloud.Attributes](docs/Attributes.md) + - [SalesforceMarketingCloud.Campaign](docs/Campaign.md) + - [SalesforceMarketingCloud.DeleteQueuedMessagesForSendDefinitionResponse](docs/DeleteQueuedMessagesForSendDefinitionResponse.md) + - [SalesforceMarketingCloud.DeleteSendDefinitionResponse](docs/DeleteSendDefinitionResponse.md) + - [SalesforceMarketingCloud.EmailDefinition](docs/EmailDefinition.md) + - [SalesforceMarketingCloud.EmailDefinitionContent](docs/EmailDefinitionContent.md) + - [SalesforceMarketingCloud.EmailDefinitionOptions](docs/EmailDefinitionOptions.md) + - [SalesforceMarketingCloud.EmailDefinitionSubscriptions](docs/EmailDefinitionSubscriptions.md) + - [SalesforceMarketingCloud.GetDefinitionSendStatusForRecipientResponse](docs/GetDefinitionSendStatusForRecipientResponse.md) + - [SalesforceMarketingCloud.GetDefinitionSendStatusForRecipientResponseInfo](docs/GetDefinitionSendStatusForRecipientResponseInfo.md) + - [SalesforceMarketingCloud.GetDefinitionsNotSentToRecipientsMessage](docs/GetDefinitionsNotSentToRecipientsMessage.md) + - [SalesforceMarketingCloud.GetDefinitionsNotSentToRecipientsMessageInfo](docs/GetDefinitionsNotSentToRecipientsMessageInfo.md) + - [SalesforceMarketingCloud.GetDefinitionsNotSentToRecipientsResponse](docs/GetDefinitionsNotSentToRecipientsResponse.md) + - [SalesforceMarketingCloud.GetEmailDefinitionsResponse](docs/GetEmailDefinitionsResponse.md) + - [SalesforceMarketingCloud.GetQueueMetricsForSendDefinitionResponse](docs/GetQueueMetricsForSendDefinitionResponse.md) + - [SalesforceMarketingCloud.GetSmsDefinitionsResponse](docs/GetSmsDefinitionsResponse.md) + - [SalesforceMarketingCloud.Recipient](docs/Recipient.md) + - [SalesforceMarketingCloud.SendDefinitionResponseItem](docs/SendDefinitionResponseItem.md) + - [SalesforceMarketingCloud.SendDefinitionToMultipleRecipientsResponse](docs/SendDefinitionToMultipleRecipientsResponse.md) + - [SalesforceMarketingCloud.SendDefinitionToSingleRecipientResponse](docs/SendDefinitionToSingleRecipientResponse.md) + - [SalesforceMarketingCloud.SendEmailToMultipleRecipientsRequest](docs/SendEmailToMultipleRecipientsRequest.md) + - [SalesforceMarketingCloud.SendEmailToSingleRecipientRequest](docs/SendEmailToSingleRecipientRequest.md) + - [SalesforceMarketingCloud.SendSmsContentRequest](docs/SendSmsContentRequest.md) + - [SalesforceMarketingCloud.SendSmsToMultipleRecipientsRequest](docs/SendSmsToMultipleRecipientsRequest.md) + - [SalesforceMarketingCloud.SendSmsToMultipleRecipientsSubscriptionsRequest](docs/SendSmsToMultipleRecipientsSubscriptionsRequest.md) + - [SalesforceMarketingCloud.SendSmsToSingleRecipientRequest](docs/SendSmsToSingleRecipientRequest.md) + - [SalesforceMarketingCloud.SharingProperties](docs/SharingProperties.md) + - [SalesforceMarketingCloud.SmsDefinition](docs/SmsDefinition.md) + - [SalesforceMarketingCloud.SmsDefinitionContent](docs/SmsDefinitionContent.md) + - [SalesforceMarketingCloud.SmsDefinitionSubscriptions](docs/SmsDefinitionSubscriptions.md) + - [SalesforceMarketingCloud.UpdateEmailDefinitionRequest](docs/UpdateEmailDefinitionRequest.md) + - [SalesforceMarketingCloud.UpdateSmsDefinitionRequest](docs/UpdateSmsDefinitionRequest.md) diff --git a/docs/AssetApi.md b/docs/AssetApi.md index 112d29c..f4c40bf 100644 --- a/docs/AssetApi.md +++ b/docs/AssetApi.md @@ -20,7 +20,7 @@ Creates a new asset. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.AssetApi(); @@ -63,7 +63,7 @@ Deletes an asset. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.AssetApi(); @@ -106,7 +106,7 @@ Gets an asset by ID. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.AssetApi(); @@ -149,7 +149,7 @@ Updates part of an asset. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.AssetApi(); diff --git a/docs/CampaignApi.md b/docs/CampaignApi.md index 74746b0..5e1e511 100644 --- a/docs/CampaignApi.md +++ b/docs/CampaignApi.md @@ -19,7 +19,7 @@ Creates a campaign. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.CampaignApi(); @@ -62,7 +62,7 @@ Deletes a campaign. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.CampaignApi(); @@ -105,7 +105,7 @@ Retrieves a campaign. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.CampaignApi(); diff --git a/docs/TransactionalMessagingApi.md b/docs/TransactionalMessagingApi.md index 66d356a..36aab6a 100644 --- a/docs/TransactionalMessagingApi.md +++ b/docs/TransactionalMessagingApi.md @@ -38,7 +38,7 @@ Creates the definition for an email. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -81,7 +81,7 @@ Creates the definition for an SMS. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -124,7 +124,7 @@ Deletes an email definition. You can't restore a deleted definition. The del ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -167,7 +167,7 @@ Deletes the queue for an email definition. The email definition must be in inact ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -210,7 +210,7 @@ Deletes the queue for a SMS definition. The SMS definition must be in inactive s ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -253,7 +253,7 @@ Deletes an sms definition. You can't restore a deleted definition. The delet ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -296,7 +296,7 @@ Gets email definition configuration details for a definition key. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -339,7 +339,7 @@ Gets a list of email definitions. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -389,7 +389,7 @@ Gets the send status for a message. Because this route is rate-limited, use it f ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -432,7 +432,7 @@ Gets a paginated list of messages that were not sent, ordered from oldest to new ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -481,7 +481,7 @@ Gets metrics for the messages of an email definition. Applies to messages that a ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -524,7 +524,7 @@ Gets metrics for the messages of a SMS definition. Applies to messages that are ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -567,7 +567,7 @@ Gets a paginated list of messages that were not sent, ordered from oldest to new ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -616,7 +616,7 @@ Gets SMS definition configuration details for a definition key. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -659,7 +659,7 @@ Gets a list of SMS definitions. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -709,7 +709,7 @@ Gets the send status for a message. Because this route is rate-limited, use it f ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -752,7 +752,7 @@ Updates a specific email definition. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -798,7 +798,7 @@ Updates a specific SMS definition. ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -844,7 +844,7 @@ Sends a message to multiple recipients using an email definition. You can provid ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -887,7 +887,7 @@ Sends a message to a single recipient via an email definition using a messageKey ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -933,7 +933,7 @@ Sends a message to multiple recipients using an email definition. You can provid ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); @@ -976,7 +976,7 @@ Sends a message to a single recipient via a SMS definition using a messageKey pa ### Example ```javascript -const SalesforceMarketingCloud = require ('SalesforceMarketingCloud'); +const SalesforceMarketingCloud = require ('salesforce-marketing-cloud-sdk'); let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi(); diff --git a/package.json b/package.json index af83dbb..39d5d1d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "SalesforceMarketingCloud", + "name": "salesforce-marketing-cloud-sdk", "version": "1.0.0", "description": "Marketing_Clouds_REST_API_is_our_newest_API__It_supports_multi_channel_use_cases_is_much_more_lightweight_and_easy_to_use_than_our_SOAP_API_and_is_getting_more_comprehensive_with_every_release_", "license": "Apache 2.0",