BLACKBAUD.api.ImageService Provides methods for getting information about images in the image gallery
new ImageService(options)
| Name | Type | Description |
|---|---|---|
options
|
Object | An object literal containing one or more of the following optional properties:
|
Methods
getImagesByFolder(folderPath, successCallback, failureCallback)
Returns a list of images in the specified folder. Only approved images that the user has rights to view will be returned.
| Name | Type | Description |
|---|---|---|
folderPath
|
String | The path of an image folder whose images should be returned. Example: Folder1/SubFolder1/SubFolder2 |
successCallback
|
function | The function to call if the request succeeds. The
function will be passed an array of objects with the following properties:
|
failureCallback
|
function | The function to call if the request fails. |
getImagesByFolderGUID(folderGUID, successCallback, failureCallback)
Returns a list of images in the specified folder. Only approved images that the user has rights to view will be returned.
| Name | Type | Description |
|---|---|---|
folderGUID
|
String | The GUID of an image folder whose images should be returned. |
successCallback
|
function | The function to call if the request succeeds. The
function will be passed an array of objects with the following properties:
|
failureCallback
|
function | The function to call if the request fails. |
getImagesByTag(tag, successCallback, failureCallback)
Returns a list of images with the specified tag. Only approved images that the user has rights to view will be returned.
| Name | Type | Description |
|---|---|---|
tag
|
String | The tag whose images should be returned. |
successCallback
|
function | The function to call if the request succeeds. The
function will be passed an array of objects with the following properties:
|
failureCallback
|
function | The function to call if the request fails. |