Securing Information with PHP
This guide covers
- Introduction to PHP
- How to properly secure information with PHP
- How and when to incorporate PHP into your
By downloading this file, you agree that its use is subject to the applicable Terms of Service and You can only use and modify the content in these exercise files with the following agreements: That these files are for Your own personal use for education purposes and to practice the skills to develop on Arcadier. That by using or altering these samples codes, You understand that Arcadier is not responsible for any effects these codes may have on your application, software or environment, both positive or otherwise.
PHP stands for “”. Some knowledge of HTML is ideal in order for you to better understand this language. PHP is dynamic and platform-independent. This guide will walk you through creating using . This coding language is essential for this particular API call as it allows you to be able to protect sensitive information, specifically the and the , from being displayed to the normal User.
At the end of this guide, you will be able to Create Custom Fields using APIs and incorporate them for dynamic User storage.
Like all other basic plug-ins:
There are other functions declared in the CallAPI.php file. The basic structure of calling an API is declared as the very first function. It also has supporting functions such as getting the Marketplace’s base URL, the packageID, and the Custom Field’s prefix.
To go through the main functionality of the API call and for the purpose of this guide example, we will:
The parameters on Arcadier’s Custom Fields APIs are exactly the same:
Referring back to the code, these lines are essentially:
Going over to your Postman app, as the custom fields were created for the Marketplace you can double check to see if the variables are declared and stored properly under the Get Marketplace information API. Call this API and scroll down to the bottom of the page and you will see that the values are properly stored.
Resending in data into your Custom Field will overwrite all of your previously declared data. In the Postman app, the old values will be erased and replaced with the new values.
This concludes your understanding of the onsets of Custom Fields and why PHP is essential to the security of Arcadier’s APIs.