Reverse engineering of Google's Bard chatbot API for dart inspired from Bard.
Installation
dart pub install bard_api
# or
flutter pub install bard_api
- Go to Bard Site
- Open the devtools.
- Copy the cookie value of
__Secure-1PSID
.
import 'package:bard_api/bard_api.dart';
void main() async {
final bard = ChatBot(sessionId: "...");
final result = await bard.ask("Hello?");
print(result);
}