Fanbeam
Fanbeam
Documentation
API Reference
Getting Started
User Guides
TypeScript SDK
AuthenticationError HandlingInstallationQuick StartTypeScript Types
Channels ExamplesMedia ExamplesPosts Examples
TypeScript SDKExamples

Channels Examples

Examples for managing channels

Complete examples for managing channels with the Fanbeam SDK.

List Channels

import { channels } from 'fanbeam';

// List all channels
const response = await channels.list();

// With filters
const filteredResponse = await channels.list({
  query: {
    platform: 'instagram'
  }
});

Get Channel

import { channels } from 'fanbeam';

const response = await channels.get({
  params: { id: 'channel-id' }
});

if (response.data) {
  console.log('Channel:', response.data);
}

Delete Channel

import { channels } from 'fanbeam';

await channels.remove({
  params: { id: 'channel-id' }
});

List Platforms

import { channels } from 'fanbeam';

const response = await channels.platforms.list();

console.log('Available platforms:', response.data);

Next Steps

  • Posts Examples
  • Media Examples

TypeScript Types

Understanding TypeScript types in the SDK

Media Examples

Examples for uploading and managing media

On this page

List ChannelsGet ChannelDelete ChannelList PlatformsNext Steps