Skip to content

Error: API key not passed #12

Description

@ashishnpise

I am getting error when i try to use this Node Dependency.

const Sendy = require('sendy-api');
const sendy = new Sendy('http://se01.ind.com/', 'pbI');
export const subscribeNewUser = functions.https.onRequest((req, res) => {
    // @ts-ignore
    /* tslint:disable:no-empty */
    corsHandler(req, res, async() => {
        sendy.subscribe({email: req.query.email, list_id: "5j"}, function(err, result) {
            if (err) console.log(err.toString());
            else console.log('Success: ' + result); res.send({status: 'ok'});
        });
    });
})

Image of Error
Screenshot_8
:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions