update readme

This commit is contained in:
Tben 2023-05-03 07:53:10 +01:00
parent 5893221df7
commit 28cc56e486
3 changed files with 6 additions and 2 deletions

View File

@ -110,7 +110,7 @@ This method requires is similar to the `post` method, but with different paramet
```js
const datasquirel = require("datasquirel");
const postData = await datasquirel.post({
const postData = await datasquirel.uploadImage({
key: process.env.FULL_ACCESS_API_KEY,
payload: {
imageData: "6ejsiua2i29ndsajkfn9n==", // Image in base64

View File

@ -4,6 +4,8 @@
* ==============================================================================
*/
const get = require("./utils/get");
const post = require("./utils/post");
const uploadImage = require("./utils/upload-image");
/** ****************************************************************************** */
/** ****************************************************************************** */
@ -20,6 +22,8 @@ const get = require("./utils/get");
*/
const datasquirel = {
get: get,
post: post,
uploadImage: uploadImage,
};
module.exports = datasquirel;

View File

@ -1,6 +1,6 @@
{
"name": "datasquirel",
"version": "1.0.0",
"version": "1.0.1",
"description": "Cloud-based SQL data management tool",
"main": "index.js",
"scripts": {