Discussions

Ask a Question
Back to All

Not able to cwork with API - Node.js

Issue : not able to install the package as stated from documentation
https://developers.certifier.io/reference/create-issue-send-a-credential
using node.js

My exact use case :
I've an edtech course platform whenever a user completes the course,the API will generate the certificate and send them,basically falls into the following use case
https://developers.certifier.io/reference/create-issue-send-a-credential

import certifier from "@api/certifier";

certifier.auth("cfpxxxxx");
certifier
.createIssueSendACredential(
{
recipient: {
name: "Vidit Shah",
email: "viditsxxxx",
},
issueDate: "2022-01-01",
customAttributes: { "custom.course": "AWS Certified Cloud Practitioner" },
groupId: "01jafjpn2bw6115scjcrgxxxx",
},
{ "Certifier-Version": "2022-10-26" }
)
.then(({ data }) => console.log(data))
.catch((err) => console.error(err));

Error:

npx api install "@certifier/v1.0#dqc5tlvm9zhgb"
✔ What language would you like to generate an SDK for? › JavaScript
✔ How are your project imports and exports structured? › ECMAScript Modules
✔ Fetching your API
✖ Generating your SDK
Sorry, this OpenAPI definition does not have any operation paths to generate an SDK for.
Same for Typescript