update readme
This commit is contained in:
parent
5893221df7
commit
28cc56e486
@ -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
|
||||
|
4
index.js
4
index.js
@ -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;
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user