medusa_js_dart

Last updated:

0 purchases

medusa_js_dart Image
medusa_js_dart Images
Add to Cart

Description:

medusa js dart

MedusaJS Client for Dart #
A Dart client library for MedusaJS, providing a seamless way for Dart and Flutter developers to interact with MedusaJS services.
This library is designed to match the functionality of its JavaScript counterpart, offering a comprehensive suite of features tailored for e-commerce applications.
Badges #

Features #


User Authentication: Enables multiple authentication strategies, including API keys and OAuth tokens, to secure your e-commerce applications.


API Interaction: Provides complete access to the MedusaJS API endpoints, allowing for robust management and operation of your store.


Data Types and Models: Offers strongly-typed Dart classes for all MedusaJS data types, enhancing type safety and development efficiency.


Documentation #
While there is currently no dedicated documentation for this Dart client, you can refer to the JavaScript client documentation as the functionality closely aligns. Additionally, explore the API reference for detailed information on the available endpoints.
Installation #
Install medusa-js-dart using pub:
Coming soon...
copied to clipboard
Usage/Examples #
To start using the MedusaJS Client in your Dart or Flutter project, follow these steps:

Import the library in your Dart or Flutter project:

import 'package:medusa_js_dart/medusa_js_dart.dart';
copied to clipboard

Initialize the client with your server's details:

final Configuration configuration = Configuration(
baseUrl: 'http://localhost:9000',
maxRetries: 3,
);

final Medusa medusa = Medusa(configuration);
copied to clipboard

Make requests as needed:

final AdminAuthRes response = await medusa.admin.auth.createSession(
AdminPostAuthReq(
'[email protected]',
'password',
),
);

print(response.user);
copied to clipboard
License #
MIT

License:

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

Files In This Product:

Customer Reviews

There are no reviews.