0.5.2 • Published 1 year ago
@fabra/sdk v0.5.2
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