Get a list of rulesets.

Retrieves a list of rulesets.


Function

  • getRuleSets()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.

Return

  • RuleSetInfo[]:
    • array of RuleSetInfo Objects

Exception

  • Exception

Documentation

  • Retrieves a list of rulesets.

Examples

public void getCategoriesSample() throws java.lang.Exception {

        Puresend p = new Puresend();
        PuresendPortType ppt = p.getPuresendHttpsSoap12Endpoint();

        String username = "XXX";
        String password = "XXX";

        List<RuleSetInfo> info = ppt.getRuleSets(username, 
                                password);
}
<?php
include 'puresend.php';

$p = new Puresend();

$getRuleSetsData = new getRuleSets();
$getRuleSetsData->username = 'XXX';
$getRuleSetsData->password = 'XXX';

$response = $p->getRuleSets($getRuleSetsData);
var_dump($response);

?>