javascript - Authentication Credentials with the SendPulse API for Node -
i'm using sendpulse client library written in node smtp. here's snippet example.js:
var api_user_id="user_id" var api_secret="user_secret" var token_storage="/tmp/" sendpulse.init(api_user_id,api_secret,token_storage);
i've tried using email address i've created account with, , password gave me on smtp settings page, user_id , user_secret, respectively. when run code, error message:
{ error: 'invalid_request', error_description: 'the request missing required parameter, includes invalid parameter value, includes parameter more once, or otherwise malformed. check "access token" parameter.', message: 'the request missing required parameter, includes invalid parameter value, includes parameter more once, or otherwise malformed. check "access token" parameter.', error_code: 1 }
however, doesn't seem matter do, you'll error message. can run sendpulse.ini();
, still message.
my question is, proper credentials use sendpulse node library? smtp settings page gives me public key, not sure that. i've noticed library year old, out of date? appreciated. i'm @ end of big project, last hurdle.
you need use "id" , "secret" https://login.sendpulse.com/settings/ page, go "api" tab , enable "activate rest api".