atlassian_apis 0.2.0
atlassian_apis: ^0.2.0 copied to clipboard

A client to access the Atlassian REST APIs (Jira Cloud platform, Service Desk, Confluence)

example/main.dart

import 'dart:io';
import 'package:atlassian_apis/jira_platform.dart';
import 'package:atlassian_apis/service_management.dart';

void main() async {
  // This example uses API Token authentication.
  // Alternatively, you can use OAuth1 with RSA.
  var user = Platform.environment['ATLASSIAN_USER']!;
  var apiToken = Platform.environment['ATLASSIAN_API_TOKEN']!;

  // Create an authenticated http client.
  var client = ApiClient.basicAuthentication(
      Uri.https('<your-account>.atlassian.net', ''),
      user: user,
      apiToken: apiToken);

  // Create the API wrapper from the http client
  var jira = JiraPlatformApi(client);

  // Communicate with the APIs..
  await jira.projects.searchProjects();

  // Close the client to quickly terminate the process
  client.close();
}
2
likes
130
pub points
43%
popularity

Publisher

xaha.dev

A client to access the Atlassian REST APIs (Jira Cloud platform, Service Desk, Confluence)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, path

More

Packages that depend on atlassian_apis