New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

parse-axios-rest-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-axios-rest-api

axios wrapper for working with parse server

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

parse-rest-api

Axios wrapper for working with parse server

Why use this?

If you love Axios and you work with parse server rest api then is perfect for you, this is only wrapper to axios with methods by the parse rest api guide

How to get started

  • install npm package: npm install parse-rest-api --save
  • import to your project : import api from 'parse-rest-api'
  • init the api with parse server configuration: api.init({ appId: 'MY_APP_ID', // required baseURL: 'https://MY_PARSE_SERVER_LOCATION/parse' // required masterKey: 'MY_MASTER_KEY' // optional sessionToken: 'XXXX' // optional })
  • you can set sessionToken by run the setSessionToken method: api.setSessionToken('-s ddd3434dDD')
  • you can remove sessionToken by run the removeSessionToken method api.removeSessionToken()

These are just defaults. Feel free to swap out eslint for jshint, or tape for mocha, or whatever you use for CI instead of coveralls.

Example

  • query api.query(className, query, limit, skip, Count = true, keys, include, order)

api.query('POST, {title: 'dd'}, 4, true, 'title,body,image', image, '-createdAt') .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });

Keywords

axios

FAQs

Package last updated on 17 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts