npm.io
1.1.0 • Published 4 years ago

monial

Licence
ISC
Version
1.1.0
Deps
1
Size
4 kB
Vulns
0
Weekly
0

Monial

Monial is a tool to collet and display testimonials. You can use this library to interact with Monial.

To use monial you'll need:

  1. A Monial account
  2. Your project's API token
  3. Library installed in your project

Download library

npm install monial or yarn add monial

Library features

  1. Get testimonials data from Monial
  2. Post testimonials to Monial

If you're looking for using Monial pop-ups, go to framework specific library, like monial_react

Get testimonials from Monial

Use this method to get testimonials data from Monial:

const getTestimonialsData = require("monial")

getTestimonialsData({token: "your_api_token_here"})
Props Required
token true

Post testimonials from Monial

Use this method to post any testimonials to Monial:

const postTextTestimonial = require("monial")

postTextTestimonial({
    token: "your_api_token_here",
    testimonial: "This is a test testimonial",
    name: "John Doe",
    image: "https://www.google.com/img/logo_lg.png",
    position: "CEO",
    type: "text"
})
Props Required
token true
testimonial true
name true
image true
position true
type true

Contribution

You can't contribute.

License

MIT

Thats all