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

Webservice Functions - XinetSetCurrentCredentials

All calls to Xinet WebNative are called from a XinetSetting object, which includes user credentials. If you want to simulate being another user, though, you can call the XinetSetCurrentCredentials function. This applies a new user/pw, and saves it in the apiKey. All subsequent calls to Xinet performed under this apiKey will run under this Xinet User Account. Set the userName to an empty string to re-use the global setting.

Declaration

public string XinetSetCurrentCredentials ( string apiKey, string userName, string userPW );

Arguments

Name

Type

Description

apiKey

apiKey

The API key previously generated by calling the GenerateApiKey function

userName

string

The name of the user to simulate

userPW

string

The password to log in with

Returns

okOrException

An XML document with DocumentElement 'ok' (<ok/>), or an exception

Security rights needed

  • Edit

Apply on resource

APIkeys

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