musketeer_client 0.1.0
musketeer_client: ^0.1.0 copied to clipboard
This is a dart/flutter API client for the Polymorph Musketeer API.
This is a dart/flutter API client for the Polymorph Musketeer API.
Getting Started #
Initialize the client with the Musketeer base URL and your API key and secret.
Musketeer.init("https://example.com/msuk", "CLIENT KEY", "api-key-guid");
Usage #
Fetching Instances #
var fllId = 8220;
var client = InstanceClient(fllId);
var instances = await client.get();
Posting Instances #
var fllId = 8220;
var client = InstanceClient(fllId);
var instance = Instance(fllId: fllId, id: 0, parentId: 0, fields: {"Title": "Test title"});
await client.post([instance]);