.pdf)
WHM Plugins
setresellerpackagelimit function from within your custom script:
/xml-api/setresellerpackagelimit function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/setresellerpackagelimit
setresellerpackagelimit function from within your custom script:
/json-api/setresellerpackagelimit function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/setresellerpackagelimit
setresellerpackagelimit function takes the following variables as input.
The following input variables are required: 1 — imposes no limits.
0 — imposes package limits.
no_limit is set to 1.
package variable. 1 — Allows the reseller to use the specified package.
0 — Prohibits the reseller from using the specified package.
setresellerpackagelimit function. 1 — success.
0 — failure.
https://example.com:2087/xml-api/setresellerpackagelimit?user=user123&no_limit=0&package=gold&allowed=1&number=100 in WebHost Manager will produce output similar to:
<setresellerpackagelimit>
<result>
<status>1</status>
<statusmsg>Successfully set reseller package limit.</statusmsg>
</result>
</setresellerpackagelimit>
https://example.com:2087/json-api/setresellerpackagelimit?user=user123&no_limit=0&package=gold&allowed=1&number=100 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Successfully set reseller package limit."
}
]
}