Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A TypeScript library for interacting with the o!rdr API and WebSocket

License

NotificationsYou must be signed in to change notification settings

LockBlock-dev/ordr.js

Repository files navigation

GitHub stars

npm

ordr.js is a Node.js module that allows you to easily interact with the o!rdr API and WebSocket.

  • Promise-based
  • Performant
  • 100% coverage of the o!rdr API and WebSocket

Installation

  • InstallNodeJS
  • Runnpm install ordr.js

Documentation

Example usage

API

import{Client}from"ordr.js";constclient=newClient();constskins=awaitclient.getSkins();console.log(skins);

API key

If you have an API key, you can specify it when initiating the client:

constclient=newClient("API_KEY");

Sending a replay

You can send a replay by doing the following:

client.sendRender({    ...replay:"https://domain.tld/path/to/your/file.osr",    ...})
client.sendRender({    ...replay:"path/to/your/file.osr",    ...})
constfile=readFile("path/to/your/file.osr");client.sendRender({    ...replay:file,    ...})
constfile=createReadStream("path/to/your/file.osr");client.sendRender({    ...replay:file,    ...})

WebSocket

import{Client,Events}from"ordr.js";constclient=newClient();client.on(Events.Connected,()=>console.log("Client connected!"));client.start();

List of events availablehere

Credits

Copyright

See thelicense

About

A TypeScript library for interacting with the o!rdr API and WebSocket

Topics

Resources

License

Stars

Watchers

Forks

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp