You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Unable to make a direct POST webhook call

Summary: Im trying to make a stand alone POST call to my ODA webhook URL


Content (required): I've enabled the channel, I've generated the authentication code, but i am always receiving the 403 forbidden error


Version (include the version you are using, if applicable): 21.12


Code Snippet (add any code snippets that support your topic, if applicable):

var crypto = require('crypto');


const body = Buffer.from(JSON.stringify('{"userId": "398383","messagePayload":{"type": "text","text": "hello, world!" }}'), 'utf8');

  const headers = {};

  headers['Content-Type'] = 'application/json; charset=utf-8';

  var cgec = buildSignatureHeader(body, "test");

  console.log(cgec);


function buildSignatureHeader(buf, channelSecretKey) {

  return 'sha256=' + buildSignature(buf, channelSecretKey);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!