musketeer_client

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

musketeer client

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");
copied to clipboard
Usage #
Query/Filter Instances #
final data =
await InstanceQuery(8220)
.filter('Name', 'John')
.filter('Surname', 'Smith')
.get();
copied to clipboard
or with a Parent ID
final data =
await InstanceQuery(8220)
.withParentId(123)
.filter('Name', 'John')
.filter('Surname', 'Smith')
.get();
copied to clipboard
Fetching Instances #
var fllId = 8220;
var client = InstanceClient(fllId);
var instances = await client.get();
copied to clipboard
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]);
copied to clipboard
Login #
User Login #
final client = AuthClient();
final user = await client.login('UserName', 'Password');
copied to clipboard
Function Login #
final client = FunctionAuthClient(11079, "Username");
final user = await client.login('FunctionUser', 'Password');
copied to clipboard
Get Fll Data for user community
final expenses = await InstanceQuery(user.community["Clients"]["Expenses"].id).get();
expect(expenses.isNotEmpty, true);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.