[#940] SearchString in getEventList

Migrated from Redmine #940 | Author: MOZ ZOM
Status: New | Priority: Low, I can wait | Created: 2022-10-07


I am using rpc client to interact with api.

In the API documentation, it states that getEventList contains the following parameters

@param bool $isVisibleOnly
@param bool $asArray
@param integer $handleClasses (1 - classes only, -1 without classes, null - skip classes check)
@param string $searchString part of name (used for comboboxes)

I pass the params as an object, namely
{
‘isVisibleOnly’:True,
‘asArray’:True,
‘handleClasses’:-1,
‘searchString’:"Some_String’
}

The first three works just fine but I cannot get the last one to work.
Is there anything I should take notice?

✭ The names of my events are in Traditional Chinese characters. So does my search string.

Redmine Admin wrote:

hi, please provide only value of params, they are not named objects

getEventList ($isVisibleOnly, $asArray, $handleClasses, $searchString)

MOZ ZOM wrote:

Sorry I got my quests wrong

I was able to pass an array of arguments
[True, True, -1, “臉”]

and it works fine

Is there a way to pass it as an object?

{
‘isVisibleOnly’:True,
‘asArray’:True,
‘handleClasses’:-1,
‘searchString’:"臉’
}