getControlTypes()

Pixelsilk API function to get the list of types of controls--requires the advanced-admin-access permission
Parameters:
The function getControlTypes has no parameters

Output:
The function getControlTypes returns an array of string values containing the types of controls for the site

C# Example:
string[] controlTypes = GetControlTypes();
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/getControlTypes HTTP/1.1
HOST: www.example.com
Content-Length: 36
Content-Type: application/x-www-form-urlencoded
Cookie: auth=272F66548A37...046D1BD8DBF8

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

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

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=741329BF262A...B45C6AFA859; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 117

Response Data:
["Head","Menu","HtmlWebbox","TextWebbox","ImageWebbox","Login", "SiteMap","Breadcrumb","PaginationControl","ListFeed"]

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

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

Returned Data:
[
    "Head",
    "Menu",
    "HtmlWebbox",
    "TextWebbox",
    "ImageWebbox",
    "Login",
    "SiteMap",
    "Breadcrumb",
    "PaginationControl",
    "ListFeed"
]

Back to Controls »