wishfly_api_client 0.4.0 wishfly_api_client: ^0.4.0 copied to clipboard
Flutter API client for Wishfly. Feature requests and voting without leaving your app.
Wishfly API client #
The Wishfly API Client is a package that enables developers to interact with the Wishfly API. It makes it easy to create, retrieve, update and delete wishes in a simple, programmatic way using Dart language without UI provided. Your design is completely up to.
Installation #
To add the Wishfly API Client to your Flutter project, add the following line to your pubspec.yaml
file under the dependencies:
section:
wishfly_api_client: ^<latest version>
Then run flutter pub get
to fetch the package.
Usage #
Before you can use the Wishfly API Client, you need to import it:
import 'package:wishfly_api_client/wishfly_api_client.dart';
Then, create an instance of the client using your API key:
final client = WishflyApiClient(apiKey: 'your-api-key');
Now you can use this instance to interact with the Wishfly API. For example, to get all projects:
await client.getProjects();
or creating feature request in project:
await client.createWish(
request: WishRequestDto(
title: 'My wish',
description: 'My wish description', // or null
projectId: 0, // Project ID from Wishfly admin
),
);
Contributing #
We welcome contributions to the Wishfly API Client. If you have a feature request or bug report, please open an issue on the Github repository.
If you're making a larger change, please open an issue first to discuss it before making a pull request.
Help #
If you have any questions about using the Wishfly API Client, please post on the Github repository and the maintainer will do their best to help you.
License #
The Wishfly API Client is licensed under the MIT License.