Technical Support

Ask a Question
Back to All

query regarding

const sdk = require('api')('@poap/v1.0#f9zrilbz36y2l');

sdk.auth('api-key');
sdk.auth('access-token');
sdk.gETActionsClaimQr()
.then(({ data }) => console.log(data))
.catch(err => console.error(err));

this is the nodejs code given in poap docs to call this api in nodejs.
In poap docs when filling api key and access token from poap docs site it is working fine from there.
but when calling this function from my side it is giving unauthorized access .
Can you tell me how?