PubNub BLOCKS Provisioning Guide for Brandceptions
PubNub block creation.
Step 1 : Login to the Pubnub account with the valid credentials.
Step 2 : Click the "CREATE NEW APP" by giving a name to your APP.
Step 3 : Click on the newly created APP.
You can see the Demo keyset for the new application created.
Step 4 : Click on the Demo keyset and click on the Blocks (on the left side). Make sure to use the same keys for the web server (Refer 'Setup PubNub Keys' section in the main README file). Step 5 : Create a new Block by giving the block name and description to the block. Step 6 : Create the Event Handler by clicking CREATE button at the bottom. Step 7 : Give the Name of the Event handler, Channel to communicate with the block and the option of when block
code should execute( select 'Before Publish of Fire' for this case). Step 8 : Copy the block code in the text area from here. Update the code with Watson Tone Analyser credentians as per step 4 of the "Setup Watson Tone Analyzer API" section in the main README file and save it.
Step 9 : Click on the Start block button(top right) to start the block.
Your block code is now running