voyant_apis 4.0.0 copy "voyant_apis: ^4.0.0" to clipboard
voyant_apis: ^4.0.0 copied to clipboard

Official Flutter SDK for Voyant APIs - NSFW image detection, text analysis, and email services with secure HMAC authentication.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:voyant_apis/voyant_apis.dart';
import 'ip_intel.dart';
import 'text_page.dart';
import 'nsfw_page.dart';
import 'email_page.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(home: Home());
  }
}

class Home extends StatelessWidget {
  Home({super.key});
  final VoyantAccountCredentials credentials = VoyantAccountCredentials(
    apiKey: "601854e01cc07cced4589eff4ffe4276", // Demo Key
    accountId: "0000000000000e59", // Demo Key
    apiSecret:
        "830047425cd8bc3a2a1681cd9299b49d64f50b574537ad39545994f98039ebb3", // Demo Key
    testMode: true, // not for sdk users
  );

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("Voyant SDK Demo")),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            ElevatedButton(
              child: const Text("IP Intel"),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (_) => IpIntelPage(credentials: credentials),
                ),
              ),
            ),
            const SizedBox(height: 12),
            ElevatedButton(
              child: const Text("Text API"),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (_) => TextPage(credentials: credentials),
                ),
              ),
            ),
            const SizedBox(height: 12),
            ElevatedButton(
              child: const Text("NSFW API"),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (_) => NsfwPage(credentials: credentials),
                ),
              ),
            ),
            const SizedBox(height: 12),
            ElevatedButton(
              child: const Text("Email API"),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (_) => EmailPage(credentials: credentials),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
150
points
276
downloads

Documentation

API reference

Publisher

verified publishervoyantnetworks.com

Weekly Downloads

Official Flutter SDK for Voyant APIs - NSFW image detection, text analysis, and email services with secure HMAC authentication.

Homepage
Repository (GitHub)
View/report issues

Topics

#ai #content-moderation #nsfw #email #text-analysis

License

MIT (license)

Dependencies

bcrypt, crypto, flutter, http, image_compression_flutter

More

Packages that depend on voyant_apis