# Image Uploader scripting API

# Small classes

## CIUUploadParams

Class methods:

`string getFolderID()`
`string getParam(string paramName)` Params:
`THUMBWIDTH`
`THUMBHEIGHT`
`string getServerFileName()`
`setDirectUrl(string url)`
`setThumbUrl(string url)`
`setViewUrl(string url)`

## CServerParams

Global object `ServerParams` is an instance of CServerParams.

`string getParam(string name)` Params:
`Login`
`Password`

Custom parameters which should be visible in server settings dialog should have the same name as in GetServerParamList.
`string setParam(string name, string value)`

## CFolderItem

`string getId()`
`string getParentId()`
`string getSummary()`
`string getTitle()`
`int getAccessType()`
`int getItemCount()`
`setId(string id)`
`setParentId(string id)`
`setSummary(string str)`
`setTitle(string str)`
`setAccessType(int type)`
`setItemCount(int count)`
`setViewUrl(string url)`

## CFolderList

`string AddFolder(string title, string summary, string id, string parentId, int accessType)`
`string AddFolderItem(CFolderItem item)`