getSystemFilenames()

Pixelsilk API function to get a list of system filenames--this is the list appearing on the System Files tab in the Design area of site admin--requires the advanced-admin-access permission
Parameters:
The function getSystemFilenames has no parameters

Output:
The function getSystemFilenames returns a list of system filenames for the site

C# Example:
IList<string> filenameList = GetSystemFilenames();
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/getSystemFilenames HTTP/1.1
HOST: www.example.com
Content-Length: 36
Content-Type: application/x-www-form-urlencoded
Cookie: auth=42EAEBF06F47...935CCFDE4AD8

Request Data:
Unencoded Data:
token=7AdbNHZQBtwc...RPTEK8UvSUQ=

Url-encoded Data:
token=7AdbNHZQBtwc...TEK8UvSUQ%3d

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=7200342B8844...DC5BD5EF631; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 225

Response Data:
["blgFeed.js","contenteditor.css","david.txt","default.css", "pixelsilk.css","robots.txt","sitetest2.js","swfobject.js"]

JavaScript Example:
Method Call:
pixelsilk2.getSystemFilenames(callback);

Input Object:
The function getSystemFilenames has no parameters.

Returned Data:
[
    "blgFeed.js",
    "contenteditor.css",
    "default.css",
    "pixelsilk.css",
    "robots.txt",
    "swfobject.js"
]

Back to Files »