logick-suggest
v1.0.1
Published
An Official API Wrapper for the Logick Suggest API
Downloads
8
Readme
Logick Suggest
Overview
Logick Suggest is a simple API wrapper for interacting with the Logick Suggest API. It allows you to manage suggestions, retrieve data, and fetch members using easy-to-use methods.
Installation
Ensure you have axios installed in your project:
npm install axiosThen, require the module in your project:
const {set} = require('logick-suggest');Usage
Initialization
Create an instance of the set class by providing your orgID and token:
const logick = new set('your-org-id', 'your-token');Methods
getAll()
Fetches all suggestions.
const suggestions = await logick.getAll();
console.log(suggestions);getOne(id)
Fetches a single suggestion by its ID.
const suggestion = await logick.getOne(12345);
console.log(suggestion);create(user, content)
Creates a new suggestion.
const newSuggestion = await logick.create('Joe Bloggs', 'Parties every Friday');
console.log(newSuggestion);get()
Fetches general data from the API.
const data = await logick.get();
console.log(data);getMembers()
Fetches members of the organization.
const members = await logick.getMembers();
console.log(members);License
This project is licensed under the MIT License.
Contributing
Feel free to open an issue or submit a pull request if you'd like to improve this wrapper.
