Create Dropbox Feed

User Intent

"How do I sync files from Dropbox? Show me Dropbox feed configuration."

Operation

SDK Method: createFeed() with FeedTypes.Site Feed Service: Dropbox OAuth: Required


Code Example (TypeScript)

import { Graphlit } from 'graphlit-client';
import { FeedTypes, FeedServiceTypes } from 'graphlit-client/dist/generated/graphql-types';

const graphlit = new Graphlit();

const feed = await graphlit.createFeed({
  name: 'My Dropbox',
  type: FeedTypes.Site,
  site: {
    type: FeedServiceTypes.Dropbox,
    token: process.env.DROPBOX_TOKEN!,
    folderPath: '/Work/Documents',
    fileTypes: ['pdf', 'docx', 'txt'],
  },
  // Optional: add workflow for content processing
  // workflow: { id: workflow.createWorkflow.id }
});

console.log(`Created Dropbox feed: ${feed.createFeed.id}`);

Last updated

Was this helpful?