Twilio.Authy.WebHookHelper
1.0.0
Install-Package Twilio.Authy.WebHookHelper -Version 1.0.0
dotnet add package Twilio.Authy.WebHookHelper --version 1.0.0
<PackageReference Include="Twilio.Authy.WebHookHelper" Version="1.0.0" />
paket add Twilio.Authy.WebHookHelper --version 1.0.0
#r "nuget: Twilio.Authy.WebHookHelper, 1.0.0"
// Install Twilio.Authy.WebHookHelper as a Cake Addin
#addin nuget:?package=Twilio.Authy.WebHookHelper&version=1.0.0
// Install Twilio.Authy.WebHookHelper as a Cake Tool
#tool nuget:?package=Twilio.Authy.WebHookHelper&version=1.0.0
Twilio.Authy.WebHookHelper
This repo demonstrates how to Create, List, Delete Authy webhooks. You can set a webhook to be called after a publically visible event (listed below). Webhooks use a POST when responding. This code also demonstrates how to sign a request and verify the signature in a response.
Official documentation may be found here: https://www.twilio.com/docs/api/authy/authy-webhooks-api
Setup Environment
- Install nuget package or clone this repository and add refference of AuthyWebhook project.
- Browse to the application you want to use in the twilio.com/console where (once enabled) you should now see:
- App API Key
- Your Access Key
- API Signing Key
- Authy API Key
- Create authy object of AuthyConfiguration with you api key, access key and signin key.
var authyConfiguration = new AuthyConfiguration("API_KEY", "ACCESS_KEY", "SIGNIN_KEY");
- Create object of AuthyWebHookHelper.
new AuthyWebHookHelper(authyConfiguration);
Public Webhook Events
You can trigger webhooks using the following events. You can use multiple events in a single webhook.
- account_recovery_approved
- account_recovery_canceled
- account_recovery_started
- custom_message_not_allowed
- device_registration_completed
- one_touch_request_responded
- phone_change_canceled
- phone_change_pin_sent
- phone_change_requested
- phone_verification_code_is_invalid
- phone_verification_code_is_valid
- phone_verification_failed
- phone_verification_not_found
- phone_verification_started
- suspended_account
- token_invalid
- token_verified
- too_many_code_verifications
- too_many_phone_verifications
- totp_token_sent
- user_added
- user_phone_changed
- user_removed
Listing Webhooks
Use string or ResponseList as the value of T
authyWebHookHelper.Get<T>();
Create a Webhook
use string or Response as value of T
var webHook = new WebHook("one_touch_request_responded", Constants.Events.ONE_TOUCH_REQUEST_RESPONDED, "https://example/api/webhooked");
var result = authyWebHookHelper.Create<T>(webHook);
Deleting a Webhook
authyWebHookHelper.Delete("WEB_HOOK_ID");
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 12.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 387 | 4/28/2019 |