plate-api

1.0.5 • Public • Published

Plate API

npm version Build Status install size

Welcome to the Node Plate Api package for Node.js

Installation:

npm install --save plate-api

Usage

To initialize an instance of the PlateAPI:

PlateApi = require("plate-api");

// Replace 'publickey' and 'secretkey' with the keys of your API integration.
plateApi = new PlateApi("publickey", "secretkey")

To make a request:

plateApi.sendRequest(
  "POST",
  "/site_translations/471/posts",
  {
    content_type_id: 11373,
    title: "An API Page!",
    slug: "a-slug-for-api"
  }
).then(
  function (response) {
    console.log("Successful response");
    console.log(response.body);
  },
  function (response) {
    console.log("Error response");
    console.log(response.body);
  }
)

Readme

Keywords

none

Package Sidebar

Install

npm i plate-api

Weekly Downloads

3

Version

1.0.5

License

ISC

Unpacked Size

8.79 kB

Total Files

7

Last publish

Collaborators

  • geniekort