harrykrupp
harrykrupp
@claide Thanks for the reply. I enabled keys and I want them in my code. My question is, how do I enable system to accept data in JSON format. If...
@Hanisch-IT thanks a lot! :+1: This works for me to some extent, it doesn't give me invalid api key error anymore - all I need to do is make the...
In your `application/config/rest.php` look for these: `$config['rest_default_format'] = 'json';` Here you can change the default format for response. `$config['rest_supported_formats'] = [ 'json', 'array', 'csv', 'html', 'jsonp', 'php', 'serialized', 'xml', ];`...
What is $result_array? Output you intend to send OR output you get from your REST API? Can you please post a snippet of what you are trying to achieve, your...
You don't have to do json_encode, based on output format `$this->response()` function will do it for you. Just pass output to it. Try the code below: ``` function user_history_get() {...