1.0.5 • Published 5 years ago

plate-api v1.0.5

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

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);
  }
)
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago