API: https://docs.lemonsqueezy.com/api
- Add this to your package's
pubspec.yaml
file:
dependencies:
lemon_squeezy:
git:
url: git://github.com/hyper-designed/lemon_squeezy.git
ref: main
- Initialize the client
import 'package:lemon_squeezy/lemon_squeezy.dart';
final client = LemonSqueezyClient(
apiKey: 'your-api-key',
enableLogging: kDebugMode, // Logs requests and responses if true.
);
- Use the client to make requests
final response = await client.products.getAllProducts();
print(response.data);
final response = await client.subscriptions.getAllSubscriptions();