Image Uploader Scripting API
|
Functions | |
int | Authenticate () |
int | CreateFolder (CFolderItem parent, CFolderItem folder) |
int | DoLogout () |
array | GetFolderAccessTypeList () |
int | GetFolderList (CFolderList folderList) |
table | GetServerParamList () |
int | IsAuthenticated () |
int | ModifyFolder (CFolderItem folder) |
int | RefreshToken () |
int | ShortenUrl (string url, UploadParams params) |
int | UploadFile (string pathToFile, UploadParams params) |
You have to implement at least one function — UploadFile.
If your service supports authentication, you have to implement Authenticate function. If you want to support album listing/creating/modifying, you have to implement also GetFolderList, CreateFolder, ModifyFolder, GetFolderAccessTypeList.
int Authenticate | ( | ) |
int DoLogout | ( | ) |
array GetFolderAccessTypeList | ( | ) |
Function that returns a list of the types of access restrictions to the album: private, public, friends only, etc.
table GetServerParamList | ( | ) |
int IsAuthenticated | ( | ) |
int RefreshToken | ( | ) |
int UploadFile | ( | string | pathToFile, |
UploadParams | params | ||
) |
Required function for server Type="image" or Type="file".