# Turnstile

## Widgets

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetDomainParam">WidgetDomainParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#Widget">Widget</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetDomain">WidgetDomain</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetListResponse">WidgetListResponse</a>

Methods:

- <code title="post /accounts/{account_id}/challenges/widgets">client.Turnstile.Widgets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetNewParams">WidgetNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#Widget">Widget</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_id}/challenges/widgets/{sitekey}">client.Turnstile.Widgets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, sitekey <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetUpdateParams">WidgetUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#Widget">Widget</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/challenges/widgets">client.Turnstile.Widgets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetListParams">WidgetListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetListResponse">WidgetListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/challenges/widgets/{sitekey}">client.Turnstile.Widgets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, sitekey <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetDeleteParams">WidgetDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#Widget">Widget</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/challenges/widgets/{sitekey}">client.Turnstile.Widgets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, sitekey <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetGetParams">WidgetGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#Widget">Widget</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/challenges/widgets/{sitekey}/rotate_secret">client.Turnstile.Widgets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetService.RotateSecret">RotateSecret</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, sitekey <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#WidgetRotateSecretParams">WidgetRotateSecretParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile">turnstile</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/turnstile#Widget">Widget</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
