LLSR API - Member (MEM) port docs and examples.
This document explains the simple use of the members port, its methods and limitations.
Full details of this port, its methods and responses and those of all other ports and methods, can be found by viewing the WSDL file here.
Connecting to the API
This and all LLSR APIs are written in PHP but use a standard SOAP service to present ports to users. The code below shows how to get a SOAP connection resource object in PHP.
try{
$client = new
SoapClient('https://api.skilouise.com/MEM-API.php?WSDL',array('trace'
=> false,'exceptions' => false));
}catch (SoapFault $sf){
// Handle Soap Faults here
}
The returned client object represents an open port on the API and all that ports available methods can be accessed as if it were a standard PHP object.
getMember Example
$response = $client->getMember("<YOUR API KEY>","<YOUR
PASSWORD>","<MEMBER ID>");
getMemberByPass Example
$response = $client->getMemberByPass("<YOUR API
KEY>","<YOUR PASSWORD>","<PASS NUMBER>");
Responses
Both getMember and getMemberByPass will return a response object with the following values...
- memberID
- firstName
- lastName
- initial
- DoB
- age type
- address1
- address2
- city
- province
- country
- postalcode
- phone
- gender
- ageCatagory
Not all member details are available via this API. If you need member information that is not present in the response object of the above methods please visit http://suppport.skilouise.com and submit a support request outlining your requirements and we will be happy to try and accomodate your requests when and where practical.