NATS4 API Record Member Login
From TMM Wiki
Jump to navigationJump to searchThis API function is available in NATS 4.1.4.1 and higher.
The 'record_member_login' API function is used to record the logins to your membership sites in NATS. This function works similarly to Member Logging.
This function needs several parameters:
- username
- siteid
- ip address
The call will return either "SUCCESS: 1" or "FAILURE: No Member Found".
Examples
NuSOAP Example (continuing from main article NuSOAP Example):
$values = Array( 'username' => 'apitest_login', 'siteid' => '1', 'ip' =>'75.99.182.234'); $result = $client->call('record_member_login', $values, 'natsapiadmin_wsdl'); var_dump($result);
Output:
SUCCESS: 1