mytaverse-sdk-wip
v1.0.21
Published
...
Downloads
7
Keywords
Readme
Mytaverse SDK
Integration library with the Mytaverse system
const { Mytaverse } = require("mytaverse-sdk-wip");
const mytaUser = new Mytaverse();
// Example:
const response = await mytaUser.login("[email protected]", "secure-password");
if (response.error){
console.log("Error");
console.log(response.error.message);
} else {
console.log("Success");
console.log(response.data.user);
}
// Response Type
interface MytaverseResponse {
error?: {
statusCode: any;
message: string;
};
data?: any;
}
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
If this is a brand new project, make sure to create a package.json
first with the npm init
command.
Installation is done using the npm install
command:
npm install mytaverse-sdk-wip