1.0.2 • Published 2 years ago

@scratchapijs/scratchapi.js v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

ScratchAPI.js

A great library for the Scratch API.

About

This is a Node.js module that makes it easy to access the Scratch API. (It is under development.)

Features

This library allows you to do the following:

  • Log in to your Scratch account.
  • Receive notifications to your account.
  • Modify project.
  • Get user / project data.

Example usage

const { Client } = require('@scratchapijs/scratchapi.js');
const client = new Client();

client.on('ready', async () => {
  console.log('Ready!');

  console.log(client.user);
  console.log(client.user.history.joinedAt);
  console.log(client.user.profile.url);
  console.log(client.user.profile.avatar);
  console.log(client.user.profile.avatarURL());
});

client.on('message', message => {
  console.log(message);
})

client.login('<username>', '<password>');

License

This library is licensed under the Apache License 2.0.

Acknowledgements

This library is based on the design of Discord.js. -Thanks to Discord.js, the awesome library.

Dependencies

The following modules are contained in the dependencies:

Others

The following services are being used for development: