Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rr-apilib

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rr-apilib

Library for interact with RR-API

  • 0.10.2-alpha
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

rr-apilib

CodeQL NPM Version

Install: npm install rr-apilib

Infos

This Library makes much easier the interactions with the project's API. Declare your Client, log in your user and browse the hidden data or make queries by browsing the classes!

Usage Example

Login and upload a new comment on an existing Resource

import { Client, CommentBuilder } from "rr-apilib";

(async () => {

  // Declare the client and login the user
  const client = new Client();
  await client.login("me@mail.com", "password");

  // Get an existing ressource in cache with id
  const resource = client.resources.cache.get("uuid");
  console.log(resource);

  // Create new Comment
  const newComment = new CommentBuilder()
      .setComment(":D");
    
  // POST the new comment in API
  await ressource.comments.add(newComment);

  // Log ressource comments
  console.log(ressource.comments);
})();

Github Documentation

Contact

FAQs

Package last updated on 18 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc