Dasha API - Flutter
Dasha API with Flutter 💙
Integrate Dasha API into your Flutter application.
Installation
The SDK installs from GitHub, pinned to a release tag.
# pubspec.yaml
dependencies:
vedika_sdk:
git:
url: https://github.com/vedika-io/vedika-sdk-flutter.git
ref: v1.0.5
# then fetch it
flutter pub getExample Code
import 'package:vedika_sdk/vedika_sdk.dart';
void main() async {
final vedika = VedikaClient(apiKey: 'YOUR_API_KEY');
final birth = BirthDetails(
datetime: '1990-06-15T10:30:00',
latitude: 18.5204,
longitude: 73.8567,
timezone: 'Asia/Kolkata',
);
final result = await vedika.astrology.mahaDasha(birth);
print(result);
vedika.dispose();
}Anything compiled into a shipped app can be extracted, including the API key. For consumer apps, call the Vedika API from your own backend and keep the key on the server.