Skip to main content

telnyx-account-java

Manage account balance, payments, invoices, webhooks, and view audit logs and detail records. This skill provides Java SDK examples.

ソース情報

リポジトリ
team-telnyx/telnyx-toolkit
ソースの最終更新活動
2026年2月10日 20:41
検出された SKILL.md の言語
英語
スター
3
フォーク
2

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
telnyx-account-java
description
Manage account balance, payments, invoices, webhooks, and view audit logs and detail records. This skill provides Java SDK examples.
metadata
{"author":"telnyx","product":"account","language":"java","generated_by":"telnyx-ext-skills-generator"}
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. --> # Telnyx Account - Java ## Installation ```text // See https://github.com/team-telnyx/telnyx-java for Maven/Gradle setup ``` ## Setup ```java import com.telnyx.sdk.client.TelnyxClient; import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient; TelnyxClient client = TelnyxOkHttpClient.fromEnv(); ``` All examples below assume `client` is already initialized as shown above. ## List Audit Logs Retrieve a list of audit log entries. `GET /audit_events` ```java import com.telnyx.sdk.models.auditevents.AuditEventListPage; import com.telnyx.sdk.models.auditevents.AuditEventListParams; AuditEventListPage page = client.auditEvents().list(); ``` ## Get user balance details `GET /balance` ```java import com.telnyx.sdk.models.balance.BalanceRetrieveParams; import com.telnyx.sdk.models.balance.BalanceRetrieveResponse; BalanceRetrieveResponse balance = client.balance().retrieve(); ``` ## Search detail records Search for any detail record across the Telnyx Platform `GET /detail_records` ```java import com.telnyx.sdk.models.detailrecords.DetailRecordListPage; import com.telnyx.sdk.models.detailrecords.DetailRecordListParams; DetailRecordListPage page = client.detailRecords().list(); ``` ## List invoices Retrieve a paginated list of invoices. `GET /invoices` ```java import com.telnyx.sdk.models.invoices.InvoiceListPage; import com.telnyx.sdk.models.invoices.InvoiceListParams; InvoiceListPage page = client.invoices().list(); ``` ## Get invoice by ID Retrieve a single invoice by its unique identifier. `GET /invoices/{id}` ```java import com.telnyx.sdk.models.invoices.InvoiceRetrieveParams; import com.telnyx.sdk.models.invoices.InvoiceRetrieveResponse; InvoiceRetrieveResponse invoice = client.invoices().retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"); ``` ## List auto recharge preferences Returns the payment auto recharge preferences. `GET /payments/auto_recharge_prefs` ```java import com.telnyx.sdk.models.payment.autorechargeprefs.AutoRechargePrefListParams; import com.telnyx.sdk.models.payment.autorechargeprefs.AutoRechargePrefListResponse; AutoRechargePrefListResponse autoRechargePrefs = client.payment().autoRechargePrefs().list(); ``` ## Update auto recharge preferences Update payment auto recharge preferences. `PATCH /payments/auto_recharge_prefs` ```java import com.telnyx.sdk.models.payment.autorechargeprefs.AutoRechargePrefUpdateParams; import com.telnyx.sdk.models.payment.autorechargeprefs.AutoRechargePrefUpdateResponse; AutoRechargePrefUpdateResponse autoRechargePref = client.payment().autoRechargePrefs().update(); ``` ## List User Tags List all user tags. `GET /user_tags` ```java import com.telnyx.sdk.models.usertags.UserTagListParams; import com.telnyx.sdk.models.usertags.UserTagListResponse; UserTagListResponse userTags = client.userTags().list(); ``` ## List webhook deliveries Lists webhook_deliveries for the authenticated user `GET /webhook_deliveries` ```java import com.telnyx.sdk.models.webhookdeliveries.WebhookDeliveryListPage; import com.telnyx.sdk.models.webhookdeliveries.WebhookDeliveryListParams; WebhookDeliveryListPage page = client.webhookDeliveries().list(); ``` ## Find webhook_delivery details by ID Provides webhook_delivery debug data, such as timestamps, delivery status and attempts. `GET /webhook_deliveries/{id}` ```java import com.telnyx.sdk.models.webhookdeliveries.WebhookDeliveryRetrieveParams; import com.telnyx.sdk.models.webhookdeliveries.WebhookDeliveryRetrieveResponse; WebhookDeliveryRetrieveResponse webhookDelivery = client.webhookDeliveries().retrieve("C9C0797E-901D-4349-A33C-C2C8F31A92C2"); ```
GitHubで見る