wishfly_api_client 0.3.1 copy "wishfly_api_client: ^0.3.1" to clipboard
wishfly_api_client: ^0.3.1 copied to clipboard

Flutter API client for Wishfly. Feature requests and voting without leaving your app.

example/wishfly_api_client_example.dart

import 'package:wishfly_api_client/wishfly_api_client.dart';
import 'package:wishfly_shared/wishfly_shared.dart';

void main() async {
  final apiClient = WishflyApiClient(apiKey: "your-api-key");

  // Get project list
  final projects = await apiClient.getProjects();
  print(projects);

  // Get current project plan
  final projectPlan = await apiClient.getProjectPlan(id: 0); // your id
  print(projectPlan);

  // Create wish
  await apiClient.createWish(
    request: WishRequestDto(
      title: "My wish",
      description: "My wish description",
      projectId: 0, // your id
    ),
  );

  // Fetch project to added feature request
  final project = await apiClient.getProject(id: 0); // your id
  print(project);
}
1
likes
140
points
21
downloads

Publisher

verified publisherwishfly.dev

Weekly Downloads

Flutter API client for Wishfly. Feature requests and voting without leaving your app.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http, wishfly_shared

More

Packages that depend on wishfly_api_client