Syntax
array getTermsAndConditions( string api_key );
Parameters
api_key
(string)The key required to access the API. See Getting Started for more information.
Return Value
Returns an array containing:
- The
terms_key
to be passed to acceptTermsAndConditions. - A string containing the terms and conditions.
Examples
$api = new Api($url, 'YOURAPIKEY');
$session_details = $api->invokeMethod('getTermsAndConditions');
$session_details = $api->invokeMethod('getTermsAndConditions');
{
"id": 1,
"method": "getTermsAndConditions",
"params": [
"YOURAPIKEY"
]
}
"id": 1,
"method": "getTermsAndConditions",
"params": [
"YOURAPIKEY"
]
}
{
"id": 1,
"result": [
"TC2813b8977c7ec6b40f4b3aa2897a36e47",
"<p><strong>1. IMPORTANT N...(omitted)",
],
"error": null
}
"id": 1,
"result": [
"TC2813b8977c7ec6b40f4b3aa2897a36e47",
"<p><strong>1. IMPORTANT N...(omitted)",
],
"error": null
}
Remarks
The method getTermsAndConditions
must be called prior to calling acceptTermsAndConditions
to obtain the terms_key
and pass it to acceptTermsAndConditions
.