help.acceptTermsOfService
Accept the new terms of service
func (c *Client) HelpAcceptTermsOfService(ctx context.Context, id DataJSON) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.HelpAcceptTermsOfService(ctx, id)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ID | DataJSON | yes | ID of terms of service |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | DATA_JSON_INVALID | The provided JSON data is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
help.acceptTermsOfService#ee72f79a