Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: API key not passed #12

Open
AshishisLiquid opened this issue Apr 28, 2021 · 0 comments
Open

Error: API key not passed #12

AshishisLiquid opened this issue Apr 28, 2021 · 0 comments

Comments

@AshishisLiquid
Copy link

AshishisLiquid commented Apr 28, 2021

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
:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant