/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import dotenv from "dotenv"; dotenv.config(); /** * Example usage of the @wistia/wistia-api-client SDK * * To run this example from the examples directory: * npm run build && npx tsx mediaUploadForm.example.ts */ import { Wistia } from "@wistia/wistia-api-client"; const wistia = new Wistia({ bearerAuth: process.env["WISTIA_BEARER_AUTH"] ?? "", }); async function main() { const result = await wistia.media.uploadForm({ url: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", lowPriority: true, }); console.log(result); } main().catch(console.error);