0.2.0-initial-pr-4f4323e8ae2ef29b78bda2a5a9e4be60cfc10694 • Published 6 years ago

pinejs-client-fetch v0.2.0-initial-pr-4f4323e8ae2ef29b78bda2a5a9e4be60cfc10694

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
6 years ago

pinejs-client-fetch

This module provides the programming interface for the pinejs API using fetch.

Usage

import PineFetch from 'pinejs-client-fetch';

const pine = new PineClientFetch(
	{ apiPrefix: 'https://api.balena-cloud.com/v5/' },
	{ fetch: fetch },
);

const result = await pine.get({
	resource: 'application',
	options: {
		$top: 1,
		$select: 'app_name',
	},
})