pajoohyar-api-driver

pajoohyar api driver based on axios

Usage no npm install needed!

<script type="module">
  import pajoohyarApiDriver from 'https://cdn.skypack.dev/pajoohyar-api-driver';
</script>

README

Pajoohyar Api Driver

Pajoohyar Api Driver is a Reactjs module which uses Axios to make http Requests to Pajoohyar Core.

Installation

run this command to install the package:

npm install pajoohyar-api-driver

Example

import Driver from 'pajoohyar-api-driver';
Driver.getPosts({data},(data, meta) => {
  console.log('success')
},
error => {
  console.log(error);
});

methods:

getTags()

getPosts()

getPost({id:postid})

getCategories()