getPlugins()

Pixelsilk API function that returns a list of plugins for the site--the list returned contains the plugins from the plugins tab in the administration design area
Parameters:
The getPlugins function has no parameters.

Output:
The getPlugins function returns a collection of key/value pairs. The key is the name of the plugin and the value indicates whether the plugin is enabled or not.

C# Example:
IDictionary<string, string> plugins = GetPlugins();
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/getPlugins HTTP/1.1
HOST: www.example.com
Content-Length: 36
Content-Type: application/x-www-form-urlencoded
Cookie: auth=321DD5D07466...0EDACBCAE767

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

Url-encoded Data:
token=7AdbNHZQBtwc...TEK8UvSUQ=

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=FBAE21B1CBA8...1FDA6AF7108; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 27

Response Data:
{"RemoteEvents":"disabled"}


JavaScript Example:
Method Call:
pixelsilk2.getPlugins(callback)

Input Object:
There is no input object for getPlugins().

Returned Data:
{
    "RemoteEvents":"disabled"
}

Back to Configuration »