@gooddata/api-client-bear
TypeScript icon, indicating that this package has built-in type declarations

9.9.0 • Public • Published

GoodData Platform REST API Client

npm version  npm monthly downloads  typescript

This package is a part of the GoodData.UI SDK. To learn more, check the source monorepo.

Important

The contents of this package were previously available under @gooddata/gooddata-js. We have consolidated, renamed and re-versioned all the JavaScript assets in GoodData UI.SDK v8.

Introduction

This package provides a thin REST API Client for the GoodData Platform (codename bear). The API client is useful for specific, low-level tasks targeting the platform. It can be used to develop small applications for either browser or the node.js environment. The responsibilities of the API client are mostly about exposing REST API endpoints as asynchronous function calls - with degrees of convenience varying from API to API.

However, we believe and recommend that the API client should be used as a last resort in situations where the higher-level components and abstractions are insufficient: please check out the @gooddata/sdk-backend-spi and @gooddata/sdk-backend-bear to learn about a more convenient API to work with analytical backends.

Note: if you are using the API client to drive custom executions on GoodData platform then you should consider using the Analytical Backend implementation for GoodData platform. The execution services located therein offer more convenient APIs.

Supported REST API versions

This table shows which version of the gooddata-js introduced support for a particular API version.

The REST API versions in the table are just for your information as the values are set internally and cannot be overridden.

api-client-bear version REST API version
>= 8.0.0 4

Usage

import sdk from "@gooddata/api-client-bear";

sdk.user
    .login("john.doe@example.com", "your-secret-password")
    .then((response) => console.log("Login OK", response))
    .catch((apiError) => console.error("Login failed", apiError, "\n\n", apiError.responseBody));

License

(C) 2017-2022 GoodData Corporation

This project is under MIT License. See LICENSE.

Readme

Keywords

none

Package Sidebar

Install

npm i @gooddata/api-client-bear

Weekly Downloads

7,337

Version

9.9.0

License

MIT

Unpacked Size

451 kB

Total Files

167

Last publish

Collaborators

  • ondrej.kvinta
  • hkad98
  • vasek.zmrhal
  • david.zoufaly
  • lienpham95
  • hoaimy
  • amilieta
  • kirill.kazakov.gd
  • bertold8
  • mkoldus
  • bich.nguyen
  • nghi.lam
  • good-andy
  • pjiranek
  • phong.nguyen
  • martin.milicka
  • hung.cao
  • artsiom.yeliseyenka.gooddata
  • rodri360
  • jaceksan
  • ivan.mjartan
  • lupko
  • tomas.kratochvil
  • jakub-sterba
  • stanislavhacker
  • vojtasii
  • pbenes
  • gooddata-ci
  • nikolacech
  • petrjanu
  • xmort
  • no23reason
  • matyas.kandl
  • utdnah
  • tuqt1005
  • tu.bui
  • my.duong
  • hang.ngo
  • scavnickyj
  • thao-luong
  • thuong.nguyen
  • huyen.nguyen
  • nestor_encinas
  • tmuchka
  • gdjan
  • tuan.tran_gd