Sample Salesforce Marketing Cloud Content Builder Block using the blocksdk and SSO OAuth.
npm install npm start
One click deployment to heroku:
The node app needs the following env variables set, that you can get from your MC enhanced package API integration screen:
# do not fork git clone https://github.com/tbesluau/sampleblock.git <my block name e.g. myblock> cd <my block name e.g. mybock> # create your own empty github repository for your new block and copy the clone url for it git remote set-url origin <your empty repo url> npm install
Files to edit:
To test your changes locally:
npm run build; npm start
Then go to the block tester app and enter
http://localhost:3000 in the text field and click a block. You will have to allow unsecure iframes in your bowser (top right in the url bar in Chrome) first.
Once ready to deploy, commit your changes to your repo and click the deploy to heroku button on it.