This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
pvs:integrate_customdevkit [2016/03/03 16:02] rsk [Example] |
pvs:integrate_customdevkit [2020/03/22 09:15] (current) rsk [Example] |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| * Knowledge of PHP | * Knowledge of PHP | ||
| - | ===== Requirements | + | ===== Please Remember |
| - | * API access credentials for the 3rd party SMS/API gateway | + | * < |
| - | * Knowledge of PHP | + | * < |
| + | ===== The Steps ===== | ||
| + | |||
| + | * open customdevkit.php file (which can be found in the Layer' | ||
| + | * provide the API credentials in the script, this depends on the Gateway provider. Some call them username/ | ||
| + | * provide the content of the SMS message in the < | ||
| + | * build & execute the api request (have a look at example files from your gateway provider) | ||
| + | * log the API Request attempt to help troubleshoot | ||
| ===== Example ===== | ===== Example ===== | ||
| + | |||
| + | The example shows how to integrate Clickatell' | ||
| <file php customdevkit.php> | <file php customdevkit.php> | ||
| - | <? | + | <?php |
| - | # | + | # |
| # | # | ||
| # This file contains an example to help you integrate any SMS provider API's gateway. | # This file contains an example to help you integrate any SMS provider API's gateway. | ||
| - | # The example below shows how to integrate Clickatell' | + | # The example below shows how to integrate Clickatell' |
| # Please be advised that we do not provide support for custom integrations. | # Please be advised that we do not provide support for custom integrations. | ||
| # | # | ||
| Line 30: | Line 39: | ||
| #provide api credentials | #provide api credentials | ||
| - | |||
| $apiid=" | $apiid=" | ||
| $apiuser=" | $apiuser=" | ||
| $apipassword=" | $apipassword=" | ||
| - | #provide the content of the SMS message - remember to include the $code varialbe | + | #provide the content of the SMS message - remember to include the $code variable |
| $body=" | $body=" | ||