phatsa 0.1.0
phatsa: ^0.1.0 copied to clipboard
Phatsa client for Dart and Flutter. App user auth, plugin tables, and RPC over the Phatsa REST API.
example/phatsa_example.dart
import 'package:phatsa/phatsa.dart';
Future<void> main() async {
final phatsa = PhatsaClient('https://your-project.phatsa.com', key: 'pk_...');
await phatsa.auth.signIn(email: 'user@example.com', password: 'secret');
final threads = await phatsa.from('forum', 'forum_threads').eq('status', 'open').order('created_at', ascending: false).limit(20).fetch();
print(threads);
await phatsa.auth.signOut();
}