This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

psc
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Parse Server Client

REST client for parse-server

Usage

import PSC from 'psc';
import fetch from 'fetch-polyfill';
 
interface SomeObject {
    fooBar: string;
}
 
const config = {
    url: 'http://localhost/parse',
    applicationId: 'some-key'
}
 
const psc = new PSC(config, fetch);
 
psc.login('username', 'password')
    .then(boundClient => {
        var query = boundClient.query<SomeObject>('ClassName');
        query.equal('name', 'Hello')
        return query.first()
    })
    .then(object => console.log(object.fooBar));
 
 
// Run a function with the master key
psc.Master.run('someFunction', { objectId: 'abc123' })
    .then(output => console.log(output))

Package Sidebar

Install

npm i psc

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • blacha