musketeer_client 0.5.3 copy "musketeer_client: ^0.5.3" to clipboard
musketeer_client: ^0.5.3 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");
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
0
likes
120
points
99
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.27 - 2025.03.11

This is a dart/flutter API client for the Polymorph Musketeer API.

Documentation

API reference

License

Unlicense (license)

Dependencies

http, jaguar_jwt

More

Packages that depend on musketeer_client