0.0.9 • Published 9 months ago

playdate-api v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Playdate API Client

This is a node library for interacting with various Playdate APIs.

Table of Contents

Installation

To use this package, you will need node 18+ and npm installed on your machine. Run the following command to install the package:

npm install playdate-api

Usage

To use this library, you will need to import it and instantiate a new PlaydateClient with your Playdate API token.

import PlaydateClient from 'playdate-api';
const client = new PlaydateClient('your-api-token');

The PlaydateClient class has several methods for interacting with the Playdate API. Note that some methods require the login method to be called first, since they need authentication.

Access Token is only optional if you have a working one, otherwise you need to set one up via registerDevice.

Examples

Here's an example of how you could use this library to register a device:

import PlaydateClient from 'playdate-api';

const client = new PlaydateClient();
await client.login('username', 'password');
const registrationData = await client.registerDevice('PDU1-Y123456');

console.log(registrationData);

License

This project is licensed under the MIT License.

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

12 months ago

0.0.1

12 months ago