#4 CodeIgniter 3.x Restful #API Library – REST API Keys

Use API Key without Database We can set the API key in the Request Header. Use API Key Like this. Create a API function Use API Key Method Insert Request Method Type [POST] Create a new route. Now, Debug API Include API Key Header. The name of the API key header is X-API-K. Set the API key here. :: Use API Key with Database :: We can also check the API key by databases. For this, we need to first create api_keys table in MySQL The name of the database table of API Keys is api_keys by default. Which we can change through the API configuration file [config/api.php]. Insert API Key in Database Table Use Custom Function in API Key

Leave a Reply

Your email address will not be published. Required fields are marked *