drone_dart 1.1.0 copy "drone_dart: ^1.1.0" to clipboard
drone_dart: ^1.1.0 copied to clipboard

outdated

Dart client for the Drone Ci API. This package give you ability to integrate with Drone Ci API easily.

example/drone_dart_example.dart

import 'package:drone_dart/drone_dart.dart';
import 'package:drone_dart/src/drone_dart_base.dart';

void main() async {
  // You need to initialize the drone before you can use it.
  // You should provide your token and Drone server address.
  // You can store your instance in a variable to reuse it later.
  final instance = DroneClient.init(
    server: '<Your Drone Server Address>',
    token: '<Your Token>',
  );

  // There is two way to get Dron client Instance.

  // 1. Use the instance variable.
  await instance.userInfo();

  // 2. Use DroneClient() instead.
  await DroneClient().userInfo();

  // You can use both of them.
}
1
likes
0
pub points
16%
popularity

Publisher

unverified uploader

Dart client for the Drone Ci API. This package give you ability to integrate with Drone Ci API easily.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

dio, freezed_annotation, json_annotation

More

Packages that depend on drone_dart