deleteAlbum()

Pixelsilk API function to delete an album from the site--requires the access-libraries permission
Parameters:
type: the type of the album
albumName: the name of the album

Output:
The function deleteAlbum returns void.

C# Example:
string type = "albumType";
string albumName = "albumName";
DeleteAlbum(type, albumName);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/deleteAlbum HTTP/1.1
HOST: www.example.com
Content-Length: 134
Content-Type: application/x-www-form-urlencoded
Cookie: auth=70631BDE0AA3...7AECDDB1D500

Request Data:
Unencoded Data:
json={
   "type":"binary",
   "albumName":"FileAlbum2"
}&token=7AdbNHZQBtwc...RPTEK8UvSUQ=

Url-encoded Data:
json=%7b%0d%0a+++...%22%0d%0a%7d&token=7AdbNHZQBtwc...TEK8UvSUQ%3d

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=1CF6D8307B37...927EBDCCCDB; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:
{}

JavaScript Example:
Method Call:
pixelsilk2.deleteAlbum(input, callback);

Input Object:
{
    type:"Image",
    albumName:"Photos"
}

Returned Data:
{}

Back to Files »