@fabra/sdk
v0.5.2
Published
<div align="left"> <p>Use the Fabra API to build customer-facing data warehouse integrations to let your customers start sending data to your application. Unblock your sales pipeline in days, not months.</p> <a href="https://github.com/fabra-io/type
Downloads
3
Readme
Fabra Typescript SDK
SDK Installation
NPM
npm add @fabra/sdk
Yarn
yarn add @fabra/sdk
SDK Example Usage
import {
GetNamespacesRequest,
GetNamespacesResponse
} from "@fabra/sdk/dist/sdk/models/operations";
import { AxiosError } from "axios";
import { Fabra } from "@fabra/sdk";
const sdk = new Fabra({
security: {
apiKeyAuth: {
apiKey: "YOUR_API_KEY_HERE",
},
}
});
const req: GetNamespacesRequest = {
queryParams: {
connectionID: 548814,
},
};
sdk.connection.getNamespaces(req).then((res: GetNamespacesResponse | AxiosError) => {
// handle response
});
SDK Available Operations
connection
getNamespaces
- Get all namespacesgetSchema
- Get schema for tablegetTables
- Get all tables
destination
createDestination
- Create a new destinationgetDestinations
- Get all destinations
linkToken
createLinkToken
- Create a new link token
object
createObject
- Create a new objectgetObjects
- Get all objects
source
createSource
- Create a new sourcegetSources
- Get all sources
sync
createSync
- Create a new syncgetSyncs
- Get all syncs