Login
class Login extends SlimCD implements Login
Class Login.
Properties
| string | $transactionUrl | Transaction URL. | from SlimCD |
| string | $statsURL | Stats URL. | from SlimCD |
| bool | $debug | Whether or not debug mode is on. Default is off. | from SlimCD |
| protected | $send | Data to send. | from SlimCD |
| protected | $receive | Data that is received. | from SlimCD |
| protected int | $defaultTimeout | Curl timeout. | from SlimCD |
| protected bool | $verifyPeer | Curl Verify Peer. | from SlimCD |
Methods
Use curl to POST the request to SlimCd.
Get settings for a specific username/password.
List all clients in the system for the specified username/password.
Gets specific sitename, businesstype, industrycode info for a username/ password or clientid/siteid.
Details
in SlimCD at line 73
protected object
buildError($url, $errorMessage)
Create an error using the URL and error message.
in SlimCD at line 100
protected mixed|object
httpPost($urlString, $timeout, $nameValueArray)
Use curl to POST the request to SlimCd.
in SlimCD at line 181
protected int
getTimeout($timeout)
Get current timeout value from property.
in SlimCD at line 197
string
getVersion()
Get the current version of the client.
in SlimCD at line 207
setVerifyPeer($verifyPeer)
You can disable verify peer, but it is not recommended.
at line 27
mixed
getUserSettings(GetUserSettingsRequest $request, bool $timeout = false)
Get settings for a specific username/password.
Retrieves a list of settings for the username/password, including transaction type permissions and any messages to be displayed to the user . Message blocks contain 5 rows. Multiple message blocks can be returned as multiple settings.
at line 48
mixed
getUserClients(GetUserClientsRequest $request, bool $timeout = false)
List all clients in the system for the specified username/password.
Generates a list of all accessible client ids and the name of the client. The list represents client ids available for a particular username/ password in the user hierarchy.
at line 71
mixed
getUserClientSite(GetUserClientSiteRequest $request, bool $timeout = false)
Gets specific sitename, businesstype, industrycode info for a username/ password or clientid/siteid.
Retrieves a list of clients and sites for the specified username/password , or a list of sites for the specified clientid, or the details on a specified clientid/siteid. The information returned shows details on the site’s setup.