Socket
Book a DemoInstallSign in
Socket

atlassian-ts

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

atlassian-ts

A type-safe client for the Atlassian REST API, powered by openapi-fetch and ky.

1.0.10
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

atlassian-ts

Version Build Status

atlassian-ts

A type-safe Typescript client for the Atlassian REST API, powered by openapi-fetch and ky.

Features

  • Full TypeScript support for Atlassian REST API endpoints
  • OAuth 2.0 and Basic Authentication support
  • Automatic retries with configurable limits
  • Built on top of robust libraries: openapi-fetch and ky

Installation

pnpm add atlassian-ts

Usage

You can create a client for either OAuth 2.0 or Basic Authentication.

OAuth 2.0 Client

For integrations that are not Forge or Connect apps, use OAuth 2.0 authorization code grants (3LO) for security (3LO scopes are shown as for operations OAuth scopes required). Read more here.

import { createOauth2Client } from 'atlassian-ts';

const client = createOauth2Client({
  cloudId: 'your-cloud-id',
  accessToken: 'your-access-token',
  retries: 3,
});

const projects = await client.GET('/rest/api/3/project');

Basic Authentication Client

For personal scripts, bots, and ad-hoc execution of the REST APIs use basic authentication. Read more here.

import { createBasicAuthClient } from 'atlassian-ts';

const client = createBasicAuthClient({
  siteUrl: 'https://your-site.atlassian.net',
  email: 'your-email@example.com',
  apiToken: 'your-api-token',
  retries: 3,
});

const projects = await client.GET('/rest/api/3/project');

Keywords

atlassian

FAQs

Package last updated on 02 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.