Vision 6

getAccountPreferences

Returns list preferences for the current account.

getAccountPreferences

Returns list preferences for the current account.

Top ↑

Syntax

array getAccountPreferences( string api_key );

API Key Access Level required: Standard access

Parameters

api_key (string)

The key required to access the API. See Getting Started for more information.

Return Value

Returns an array of list preferences for the current account.

Examples

The following code retrieves all list preferences for the current account.

PHP

$api = new Api($url, 'YOURAPIKEY');
$preferences = $api->invokeMethod('getAccountPreferences');

// loop over the result
foreach ($preferences as $index => $preference) {
  print "Preference: ". $preference ."\n";
}

JSON Request

{
    "id": 1,
    "method": "getAccountPreferences",
    "params": [
        "YOURAPIKEY"
    ]
}

JSON Response

{
    "id": 1,
    "result" : [
        "Preference",
        "Second Preference"
    ],
    "error": null
}

See Also