diff --git a/README.md b/README.md index eb6e562..38dc393 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ if ($result['status'] == 'ok') { // Create a swik object $swik = new Swik(); -// Set the Id you used to create it +// Set the Swik Id (yours or the one from Swikly) $swik->setSwikId("YOUR_ID"); // Deleting the swik @@ -128,3 +128,27 @@ if ($result['status'] == 'ok') { echo "Error = " . $result['message']; } ``` + +### Get Swik + +```PHP +setSwikId("YOUR_ID"); + +// Get the list of your swiks +$result = $swkAPI->getSwik($swik); + +// Print result of the operation +if ($result['status'] == 'ok') { + echo "Swik detail = "; + print_r($result['swik']); +} else { + echo "Failed getting the swik list"; + echo "Error = " . $result['message']; +} +```