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
|
```js
|
||||||
const datasquirel = require("datasquirel");
|
const datasquirel = require("datasquirel");
|
||||||
|
|
||||||
const postData = await datasquirel.post({
|
const postData = await datasquirel.uploadImage({
|
||||||
key: process.env.FULL_ACCESS_API_KEY,
|
key: process.env.FULL_ACCESS_API_KEY,
|
||||||
payload: {
|
payload: {
|
||||||
imageData: "6ejsiua2i29ndsajkfn9n==", // Image in base64
|
imageData: "6ejsiua2i29ndsajkfn9n==", // Image in base64
|
||||||
|
4
index.js
4
index.js
@ -4,6 +4,8 @@
|
|||||||
* ==============================================================================
|
* ==============================================================================
|
||||||
*/
|
*/
|
||||||
const get = require("./utils/get");
|
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 = {
|
const datasquirel = {
|
||||||
get: get,
|
get: get,
|
||||||
|
post: post,
|
||||||
|
uploadImage: uploadImage,
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = datasquirel;
|
module.exports = datasquirel;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user