Catalog


Example

For the complete example, please see here .

Create a new profile

$create = new CreateProfile(); [$result, $err] = $client->Do($create); if ($err != null) { echo 'ApiError:'.$err->message; return; } file_put_contents('create_profile_result.json', json_encode($result)); $profileId = $result->id;

Retrieve the details of the created profile

$detail = new ProfileDetail(); $detail->profileId = $profileId; [$result, $err] = $client->Do($detail); if ($err != null) { echo 'ApiError:'.$err->message; return; } file_put_contents('profile_detail_result.json', json_encode($result));

Edit the profile

$edit = new EdProfile(); $edit->profileId = $profileId; // Set the properties you want to update... [$result, $err] = $client->Do($edit); if ($err != null) { echo 'ApiError:'.$err->message; return; } file_put_contents('edit_profile_result.json', json_encode($result));

List all profiles

$list = new LsProfile(); [$result, $err] = $client->Do($list); if ($err != null) { echo 'ApiError:'.$err->message; return; } file_put_contents('list_profile_result.json', json_encode($result));

Remove a profile

$rm = new RmProfile(); $rm->profileId = $profileId; [$result, $err] = $client->Do($rm); if ($err != null) { echo 'ApiError:'.$err->message; return; } file_put_contents('remove_profile_result.json', json_encode($result));

Export Profile

$export = new ExportProfile(); $export->profileId = "Your_Profile_Id"; [$result, $err] = $client->Do($export); if ($err != null) { echo 'ApiError:'.$err->message; return; } file_put_contents('export_profile_result.json', json_encode($result));

Error Handling

  • API errors are captured and displayed using echo 'ApiError:'.$err->message;.
  • SDK exceptions are handled using a try-catch block.

Correspondence list

ClassApi
CreateProfileCreate New KYC Profile
ProfileDetailGet KYC Profile
EdProfileUpdate KYC Profile
LsProfileList KYC Profile
RmProfileDelete KYC Profile
ExportProfileExport KYC Profile

Did this page help you?