【解決方法】Bandwidth.com API に SMS を送信する VB.NET の例を探しています…

プログラミングQA


vb.net で動作するアプリケーションが見つからないようです…bandwidth.com に VB.NET のサンプルを求めても無駄のようです…bandwidth.com を SMS 送信のプロバイダーとして使用している動作するサンプルを持っている人はいますか? ???

誰かの助けに感謝します。

私が試したこと:

さまざまな VB.NET シェルがありましたが、うまくいきませんでした…コミュニティの誰かが Bandwidth.com に接続し、それを VB.NET で動作させるアイデアを持っていると考えなければなりません…

解決策 1

API ドキュメントの場所は次のとおりです。 帯域幅 API ドキュメント[^] またはより具体的には、 メッセージング[^]。

これは、サンプル コードを含む C# SDK へのリンクです (上記のリンクから)。 GitHub – 帯域幅/csharp-sdk: 帯域幅音声およびメッセージング用の C# SDK[^] その他のコードサンプルはこちら: 帯域幅のサンプル · GitHub[^]

私が確認した限り、VB.Net 固有の例はありません。 ChatGPT を使用して C# を VB.Net に変換できます。 次のことを依頼できます。

Convert the following C# code to VB.Net:

次に、変換するコードを追加します。 この特定のタスクを実行するツールよりも優れた仕事をしますが、常に 100% 正確であるとは限りません。 あなたを正しい方向に導くだけで十分です。

たとえば、私が尋ねると、次のようになります。

Convert the following C# code to VB.Net:

using Bandwidth.Standard;

var client = new BandwidthClient.Builder()
    .Environment(Bandwidth.Standard.Environment.Production)
    .MessagingBasicAuthCredentials("username", "password")
    .VoiceBasicAuthCredentials("username", "password")
    .TwoFactorAuthBasicAuthCredentials("username", "password")
    .WebRtcBasicAuthCredentials("username", "password")
    .Build();

出力は次のとおりです。

Imports Bandwidth.Standard

Dim client = New BandwidthClient.Builder() _
    .Environment(Bandwidth.Standard.Environment.Production) _
    .MessagingBasicAuthCredentials("username", "password") _
    .VoiceBasicAuthCredentials("username", "password") _
    .TwoFactorAuthBasicAuthCredentials("username", "password") _
    .WebRtcBasicAuthCredentials("username", "password") _
    .Build()

コメント

タイトルとURLをコピーしました