Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 864 Bytes

File metadata and controls

46 lines (31 loc) · 864 Bytes

Grepper Node.js client

Work in progress

This library is a wrapper for the Grepper API.

Getting started

Authentication

Replace your_api_key with your actual API Key

import Grepper from "./index.ts";

Grepper.apiKey = "your_api_key";

Search All Answers

This endpoint searches all answers based on a query.

Grepper.search("strings in c").then((answers) => {
    console.log(answers);
});

Retrieve an Answer

This endpoint retrieves a specific answer.

Grepper.retrieve(12345).then((answer) => {
    console.log(answer);
});

Update a specific answer

This endpoint updates a specific answer.

Grepper.update(54321, "This answer will be updated").then((updateResult) => {
    console.log(updateResult);
});