Turnstile
TurnstileWidgets
List Turnstile Widgets
client.Turnstile.Widgets.List(ctx, params) (*V4PagePaginationArray[WidgetListResponse], error)
GET/accounts/{account_id}/challenges/widgets
Turnstile Widget Details
client.Turnstile.Widgets.Get(ctx, sitekey, query) (*Widget, error)
GET/accounts/{account_id}/challenges/widgets/{sitekey}
Create a Turnstile Widget
client.Turnstile.Widgets.New(ctx, params) (*Widget, error)
POST/accounts/{account_id}/challenges/widgets
Update a Turnstile Widget
client.Turnstile.Widgets.Update(ctx, sitekey, params) (*Widget, error)
PUT/accounts/{account_id}/challenges/widgets/{sitekey}
Delete a Turnstile Widget
client.Turnstile.Widgets.Delete(ctx, sitekey, body) (*Widget, error)
DELETE/accounts/{account_id}/challenges/widgets/{sitekey}
Rotate Secret for a Turnstile Widget
client.Turnstile.Widgets.RotateSecret(ctx, sitekey, params) (*Widget, error)
POST/accounts/{account_id}/challenges/widgets/{sitekey}/rotate_secret