Skip to main content
telnyx-webrtc-go Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides Go SDK examples.
الانتقال إلى التثبيت سوق المهارات اكتشف واستكشف مهارات الذكاء الاصطناعي التي بناها المجتمع.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
نسخ Promptعرض تفاصيل Prompt يتجاوز الأمر المباشر Prompt المخصّص للمراجعة. افحص المصدر قبل تشغيله.
npx skills add https://github.com/team-telnyx/telnyx-toolkit --skill telnyx-webrtc-goيبقى الأمر في سطر واحد. مرّر أفقيًا لمراجعته كاملًا قبل النسخ.
تفضّل نسخة محلية؟ نزّل الملفات المتاحة حاليًا لدى SkillsMP.
تحميل Zip جاري التحميل... المزيد من هذا المستودع Complete Telnyx toolkit — ready-to-use tools (STT, TTS, RAG, Networking, 10DLC) plus SDK documentation for JavaScript, Python, Go, Java, and Ruby.
Automated Telnyx bot account signup via challenge-response
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.
SOC
استنادا إلى تصنيف SOC المهني
name telnyx-webrtc-go description Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides Go SDK examples. metadata {"author":"telnyx","product":"webrtc","language":"go","generated_by":"telnyx-ext-skills-generator"}
Telnyx Webrtc - Go
Installation
go get github.com/team-telnyx/telnyx-go
Setup
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.
List mobile push credentials
GET /mobile_push_credentials
page, err := client.MobilePushCredentials.List(context.TODO(), telnyx.MobilePushCredentialListParams{})
if err != nil {
panic (err.Error())
}
fmt.Printf("%+v\n" , page)
Creates a new mobile push credential
POST /mobile_push_credentials
pushCredentialResponse, err := client.MobilePushCredentials.New(context.TODO(), telnyx.MobilePushCredentialNewParams{
OfIos: &telnyx.MobilePushCredentialNewParamsCreateMobilePushCredentialRequestIos{
Alias: ,
Certificate: ,
PrivateKey: ,
},
})
err != {
(err.Error())
}
fmt.Printf( , pushCredentialResponse.Data)
"LucyIosCredential"
"-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----"
"-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----"
if
nil
panic
"%+v\n"
Retrieves a mobile push credential Retrieves mobile push credential based on the given push_credential_id
GET /mobile_push_credentials/{push_credential_id}
pushCredentialResponse, err := client.MobilePushCredentials.Get(context.TODO(), "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0" )
if err != nil {
panic (err.Error())
}
fmt.Printf("%+v\n" , pushCredentialResponse.Data)
Deletes a mobile push credential Deletes a mobile push credential based on the given push_credential_id
DELETE /mobile_push_credentials/{push_credential_id}
err := client.MobilePushCredentials.Delete(context.TODO(), "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0" )
if err != nil {
panic (err.Error())
}
List all credentials List all On-demand Credentials.
GET /telephony_credentials
page, err := client.TelephonyCredentials.List(context.TODO(), telnyx.TelephonyCredentialListParams{})
if err != nil {
panic (err.Error())
}
fmt.Printf("%+v\n" , page)
Create a credential POST /telephony_credentials — Required: connection_id
telephonyCredential, err := client.TelephonyCredentials.New(context.TODO(), telnyx.TelephonyCredentialNewParams{
ConnectionID: "1234567890" ,
})
if err != nil {
panic (err.Error())
}
fmt.Printf("%+v\n" , telephonyCredential.Data)
Get a credential Get the details of an existing On-demand Credential.
GET /telephony_credentials/{id}
telephonyCredential, err := client.TelephonyCredentials.Get(context.TODO(), "id" )
if err != nil {
panic (err.Error())
}
fmt.Printf("%+v\n" , telephonyCredential.Data)
Update a credential Update an existing credential.
PATCH /telephony_credentials/{id}
telephonyCredential, err := client.TelephonyCredentials.Update(
context.TODO(),
"id" ,
telnyx.TelephonyCredentialUpdateParams{},
)
if err != nil {
panic (err.Error())
}
fmt.Printf("%+v\n" , telephonyCredential.Data)
Delete a credential Delete an existing credential.
DELETE /telephony_credentials/{id}
telephonyCredential, err := client.TelephonyCredentials.Delete(context.TODO(), "id" )
if err != nil {
panic (err.Error())
}
fmt.Printf("%+v\n" , telephonyCredential.Data)
Create an Access Token. Create an Access Token (JWT) for the credential.
POST /telephony_credentials/{id}/token
response, err := client.TelephonyCredentials.NewToken(context.TODO(), "id" )
if err != nil {
panic (err.Error())
}
fmt.Printf("%+v\n" , response)