Skip to main content

help.getConfig

Returns current configuration, including data center configuration.

func (c *Client) HelpGetConfig(ctx context.Context) (*Config, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.HelpGetConfig(ctx)
if err != nil {
return err
}
_ = res // *Config
return nil
})

Parameters

This method takes no parameters.

Returns

*Config

Possible errors

CodeTypeDescription
400CONNECTION_API_ID_INVALIDThe provided API id is invalid.
400CONNECTION_APP_VERSION_EMPTYApp version is empty.
400CONNECTION_LAYER_INVALIDLayer invalid.
400DATA_INVALIDEncrypted data invalid.
400MSG_ID_INVALIDInvalid message ID provided.
400USERNAME_INVALIDThe provided username is not valid.
403USER_PRIVACY_RESTRICTEDThe user's privacy settings do not allow you to do this.

References