Mints a public share token for a thread.
func (
r *ThreadShareService) New(ctx context.Context,
threadID string,
body ThreadShareNewParams,
opts ...option.RequestOption) (res *ThreadShareNewResponse,
err error
)Mints a public share token for a thread. Idempotent: sharing an already-shared thread returns the existing token.
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
threadID* | string | |
body* | ThreadShareNewParams | |
opts* | ...option.RequestOption |