The Castmagic API allows you to control and automate the casting of media to various devices, such as Chromecast and smart TVs. It's designed for developers who want to build custom casting solutions without the hassle of dealing with low-level protocol details. Through Pipedream, you can integrate Castmagic with a myriad of services and triggers, creating workflows that respond to events like new content releases, user interactions, or scheduled routines. You can leverage Pipedream's serverless platform to create, run, and maintain these automations with ease.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
castmagic: {
type: "app",
app: "castmagic",
}
},
async run({steps, $}) {
const data = {
"url": `https://www.youtube.com/watch?v=YuV5ATYcY_I`,
}
return await axios($, {
method: "post",
url: `https://app.castmagic.io/v1/transcripts`,
headers: {
Authorization: `Bearer ${this.castmagic.$auth.secret_key}`,
},
data,
})
},
})
Automated Media Casting for New Content: When a new video is uploaded to a cloud storage platform like Dropbox, trigger a Pipedream workflow that uses the Castmagic API to cast the video to a designated device, ensuring you never miss the latest uploads.
Scheduled Morning Routine: Set up a daily morning routine that casts the latest news, weather updates, and your favorite playlist to your TV and speakers as you start your day. This can be done by triggering a Pipedream workflow at a scheduled time, which then calls the Castmagic API to manage the media playback.
Voice-Controlled Media Playback: Integrate Castmagic with a voice assistant like Google Assistant through Pipedream. Use voice commands to trigger a workflow that instructs the Castmagic API to play, pause, or stop media content on your connected devices, bringing hands-free convenience to your media experience.
Retrieves details for a transcript given an identifier. See the documentation
Submits a request to transcribe from a URL. See the documentation
Castmagic uses API keys for authentication. When you connect your Castmagic account, Pipedream securely stores the keys so you can easily authenticate to Castmagic APIs in both code and no-code steps.