Information Classification: External Restricted.
See https://www.chili-publish.com/security

Webservice Functions - GenerateApiKeyWithSettings

Generates an apiKey for subsequent calls to the other webservice functions. Use SetWorkingEnvironment to use your user account (if it is an administrator) to access different environments

Declaration

public string GenerateApiKeyWithSettings ( string environmentNameOrURL, string userName, string password, string settingsXML );

Arguments

Name

Type

Description

environmentNameOrURL

string

The identifier for the environment in which to log in

This can be:

userName

string

The user to log in with.
This user needs to exist in the specified environment.

password

string

The user's password.
This can be provided as a MD5 encoded string (which of course is the preferred method)

settingsXML

xmlString

XML representation of name/value pairs of the settings to apply. Eg:
<settings>
<item name='userAssetDirectory' value='users\USER_NAME' />
<item name='allowWorkspaceAdministration' value='false' />
</settings>

Key names are case sensitive. An exception will be thrown for invalid key names.
Possible key names are:

  • allowWorkspaceAdministration
  • allowContentAdministration
  • noAutomaticPreviewForNewItems
  • userLanguage
  • userLanguageIgnoreWorkSpaceLanguage
  • xinetUser
  • xinetPW
  • userAssetDirectory
  • userGroupAssetDirectory
  • documentAssetDirectory

Returns

loginResult

All information on this page must be treated as External Restricted, or more strict. https://www.chili-publish.com/security