2.0.0 • Published 8 months ago

@requestkit/node v2.0.0

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

Nodejs client for RequestKit

Installation

npm install @requestkit/node

Usage

import { RequestKit } from "@requestkit/node";

const requestKit = new RequestKit({ apiKey: "your-api-key" });

const requests = await requestKit.getRequests();
console.log(requests);

API

getRequests

const requests = await requestKit.getRequests();

createRequest

const request = await requestKit.createRequest({
  title: "My Request",
  description: "This is a test request",
});

upvoteRequest

const request = await requestKit.upvoteRequest(requestId);

removeUpvoteFromRequest

const request = await requestKit.removeUpvoteFromRequest(requestId);

getRequest

const request = await requestKit.getRequest(requestId);
2.0.0

8 months ago

1.3.0

9 months ago

1.2.2

9 months ago

1.2.0

9 months ago

1.1.0

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago