atlassian_apis 0.15.0 copy "atlassian_apis: ^0.15.0" to clipboard
atlassian_apis: ^0.15.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';

void main() async {
  // This example uses API Token authentication.
  // Alternatively, you can use OAuth.
  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();
}
21
likes
160
points
2.54k
downloads

Publisher

verified publisherxaha.dev

Weekly Downloads

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