atlassian_apis 0.3.0 copy "atlassian_apis: ^0.3.0" to clipboard
atlassian_apis: ^0.3.0 copied to clipboard

outdated

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 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();
}
20
likes
0
pub points
81%
popularity

Publisher

verified publisherxaha.dev

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, path

More

Packages that depend on atlassian_apis