Breaking changes in TypeScript SDK version 0.0.30
Fathom
FathomApi
import { FathomApi } from 'fathom-typescript'; const fathom = new FathomApi("apikey");
import { Fathom } from 'fathom-typescript'; const fathom = new Fathom({security: {apiKeyAuth: "apikey"}});
import { FathomApi } from 'fathom-typescript'; const fathom = new FathomApi("your_api_key");
import { Fathom } from 'fathom-typescript'; const fathom = new Fathom({ security: { apiKeyAuth: "your_api_key" } });
import { Fathom } from 'fathom-typescript'; // OAuth authorization URL generation const url = Fathom.getAuthorizationUrl({ clientId: 'YOUR_CLIENT_ID', clientSecret: 'YOUR_CLIENT_SECRET', redirectUri: 'https://your_redirect_url', scope: 'public_api', state: 'randomState123', }); // OAuth client initialization const tokenStore = Fathom.newTokenStore(); const fathom = new Fathom({ security: Fathom.withAuthorization({ clientId: "YOUR_CLIENT_ID", clientSecret: "YOUR_CLIENT_SECRET", code: "AUTHORIZATION_CODE_FROM_CALLBACK", redirectUri: "https://your_redirect_url", tokenStore: tokenStore }), });
// Old import { FathomApi } from 'fathom-typescript'; // New import { Fathom } from 'fathom-typescript';
// Old const fathom = new FathomApi("your_api_key"); // New const fathom = new Fathom({ security: { apiKeyAuth: "your_api_key" } });
// Method calls remain the same const result = await fathom.listMeetings({});
{ "dependencies": { "fathom-typescript": "0.0.30" } }