0.1.1 • Published 7 years ago

psc v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

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))
0.1.1

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago