ワンクリックで
telnyx-video-go
Create and manage video rooms for real-time video communication and conferencing. This skill provides Go SDK examples.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create and manage video rooms for real-time video communication and conferencing. This skill provides Go SDK examples.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | telnyx-video-go |
| description | Create and manage video rooms for real-time video communication and conferencing. This skill provides Go SDK examples. |
| metadata | {"author":"telnyx","product":"video","language":"go","generated_by":"telnyx-ext-skills-generator"} |
go get github.com/team-telnyx/telnyx-go
import (
"context"
"fmt"
"os"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
client := telnyx.NewClient(
option.WithAPIKey(os.Getenv("TELNYX_API_KEY")),
)
All examples below assume client is already initialized as shown above.
GET /room_compositions
page, err := client.RoomCompositions.List(context.TODO(), telnyx.RoomCompositionListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
Asynchronously create a room composition.
POST /room_compositions
roomComposition, err := client.RoomCompositions.New(context.TODO(), telnyx.RoomCompositionNewParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", roomComposition.Data)
GET /room_compositions/{room_composition_id}
roomComposition, err := client.RoomCompositions.Get(context.TODO(), "5219b3af-87c6-4c08-9b58-5a533d893e21")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", roomComposition.Data)
Synchronously delete a room composition.
DELETE /room_compositions/{room_composition_id}
err := client.RoomCompositions.Delete(context.TODO(), "5219b3af-87c6-4c08-9b58-5a533d893e21")
if err != nil {
panic(err.Error())
}
GET /room_participants
page, err := client.RoomParticipants.List(context.TODO(), telnyx.RoomParticipantListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
GET /room_participants/{room_participant_id}
roomParticipant, err := client.RoomParticipants.Get(context.TODO(), "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", roomParticipant.Data)
GET /room_recordings
page, err := client.RoomRecordings.List(context.TODO(), telnyx.RoomRecordingListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
DELETE /room_recordings
response, err := client.RoomRecordings.DeleteBulk(context.TODO(), telnyx.RoomRecordingDeleteBulkParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
GET /room_recordings/{room_recording_id}
roomRecording, err := client.RoomRecordings.Get(context.TODO(), "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", roomRecording.Data)
Synchronously delete a Room Recording.
DELETE /room_recordings/{room_recording_id}
err := client.RoomRecordings.Delete(context.TODO(), "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0")
if err != nil {
panic(err.Error())
}
GET /room_sessions
page, err := client.Rooms.Sessions.List0(context.TODO(), telnyx.RoomSessionList0Params{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
GET /room_sessions/{room_session_id}
session, err := client.Rooms.Sessions.Get(
context.TODO(),
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
telnyx.RoomSessionGetParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", session.Data)
Note: this will also kick all participants currently present in the room
POST /room_sessions/{room_session_id}/actions/end
response, err := client.Rooms.Sessions.Actions.End(context.TODO(), "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
POST /room_sessions/{room_session_id}/actions/kick
response, err := client.Rooms.Sessions.Actions.Kick(
context.TODO(),
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
telnyx.RoomSessionActionKickParams{
ActionsParticipantsRequest: telnyx.ActionsParticipantsRequestParam{},
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
POST /room_sessions/{room_session_id}/actions/mute
response, err := client.Rooms.Sessions.Actions.Mute(
context.TODO(),
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
telnyx.RoomSessionActionMuteParams{
ActionsParticipantsRequest: telnyx.ActionsParticipantsRequestParam{},
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
POST /room_sessions/{room_session_id}/actions/unmute
response, err := client.Rooms.Sessions.Actions.Unmute(
context.TODO(),
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
telnyx.RoomSessionActionUnmuteParams{
ActionsParticipantsRequest: telnyx.ActionsParticipantsRequestParam{},
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
GET /room_sessions/{room_session_id}/participants
page, err := client.Rooms.Sessions.GetParticipants(
context.TODO(),
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
telnyx.RoomSessionGetParticipantsParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
GET /rooms
page, err := client.Rooms.List(context.TODO(), telnyx.RoomListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
Synchronously create a Room.
POST /rooms
room, err := client.Rooms.New(context.TODO(), telnyx.RoomNewParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", room.Data)
GET /rooms/{room_id}
room, err := client.Rooms.Get(
context.TODO(),
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
telnyx.RoomGetParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", room.Data)
Synchronously update a Room.
PATCH /rooms/{room_id}
room, err := client.Rooms.Update(
context.TODO(),
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
telnyx.RoomUpdateParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", room.Data)
Synchronously delete a Room.
DELETE /rooms/{room_id}
err := client.Rooms.Delete(context.TODO(), "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0")
if err != nil {
panic(err.Error())
}
Synchronously create an Client Token to join a Room.
POST /rooms/{room_id}/actions/generate_join_client_token
response, err := client.Rooms.Actions.GenerateJoinClientToken(
context.TODO(),
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
telnyx.RoomActionGenerateJoinClientTokenParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
Synchronously refresh an Client Token to join a Room.
POST /rooms/{room_id}/actions/refresh_client_token — Required: refresh_token
response, err := client.Rooms.Actions.RefreshClientToken(
context.TODO(),
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
telnyx.RoomActionRefreshClientTokenParams{
RefreshToken: "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ0ZWxueXhfdGVsZXBob255IiwiZXhwIjoxNTkwMDEwMTQzLCJpYXQiOjE1ODc1OTA5NDMsImlzcyI6InRlbG55eF90ZWxlcGhvbnkiLCJqdGkiOiJiOGM3NDgzNy1kODllLTRhNjUtOWNmMi0zNGM3YTZmYTYwYzgiLCJuYmYiOjE1ODc1OTA5NDIsInN1YiI6IjVjN2FjN2QwLWRiNjUtNGYxMS05OGUxLWVlYzBkMWQ1YzZhZSIsInRlbF90b2tlbiI6InJqX1pra1pVT1pNeFpPZk9tTHBFVUIzc2lVN3U2UmpaRmVNOXMtZ2JfeENSNTZXRktGQUppTXlGMlQ2Q0JSbWxoX1N5MGlfbGZ5VDlBSThzRWlmOE1USUlzenl6U2xfYURuRzQ4YU81MHlhSEd1UlNZYlViU1ltOVdJaVEwZz09IiwidHlwIjoiYWNjZXNzIn0.gNEwzTow5MLLPLQENytca7pUN79PmPj6FyqZWW06ZeEmesxYpwKh0xRtA0TzLh6CDYIRHrI8seofOO0YFGDhpQ",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
GET /rooms/{room_id}/sessions
page, err := client.Rooms.Sessions.List1(
context.TODO(),
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
telnyx.RoomSessionList1Params{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
Automated Telnyx bot account signup via obfuscated mathematical challenge
Track agent activities using the Telnyx AI Missions API. Use this skill when executing multi-step tasks that should be logged and tracked. Supports creating voice/SMS agents, scheduling calls, and retrieving conversation insights. Use when tasks involve calling people, sending SMS, or any substantial tracked work.
Automatically upgrade Telnyx account from freemium to professional tier
Test VoIP push notifications for Telnyx WebRTC iOS (APNs) and Android (FCM) apps. Use when debugging push notification delivery, validating certificate/credential setup, or testing that a device receives VoIP pushes correctly.
Text-to-vector embeddings and semantic search using Telnyx AI. Generate embedding vectors via an OpenAI-compatible API — no OpenAI or Google API keys required.
Register brands and campaigns for 10DLC (10-digit long code) A2P messaging compliance in the US. Manage campaign assignments to phone numbers. This skill provides Go SDK examples.