Prexview

FREE
By zakutynsky
Updated 5 months ago
Business Software
-/10
Popularity Score
-
Latency
-
Success Rate

Prexview API Documentation

PrexView makes it simple to convert your data to different formats.

View API Details
POSTcreateDocument
POSTcreateDocument

This is the most basic and simple way to use the transform service.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
templateSTRING
REQUIREDTemplate’s name to use for the document creation, you can use dynamic values.
dataJSON
REQUIREDData to transform in JSON format
apiKeyCREDENTIALS
REQUIREDYour prexview access key
outputSELECT
REQUIREDType of document that will be created by PrexView service, it must be html, pdf, png or jpg.
Optional Parameters
noteSTRING
OPTIONALCustom note that can be used to add any information, it’s limit up to 500 chars. This is useful if you want to add metadata such as document, transaction or customer ID. You can use dynamic values.
templateBackupSTRING
OPTIONALTemplate’s name to use if the template option doesn’t exist
Code Snippet
unirest.post("https://PrexviewzakutynskyV1.p.rapidapi.com/createDocument")
.header("X-RapidAPI-Host", "PrexviewzakutynskyV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://PrexviewzakutynskyV1.p.rapidapi.com/createDocument
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://PrexviewzakutynskyV1.p.rapidapi.com/createDocument")
.header("X-RapidAPI-Host", "PrexviewzakutynskyV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication