Hi Rein,
This is the request:
http://********************.com/index.php/api/rest/read_entry/json?auth[api_key]=***********************************&data;[channel]=cities&data;[output_fields]=title
and this is the response:
{“message”:“Successfully readed”,“success”:true,“id”:“90|85|83|84|82|81|80|28|99”,“metadata”:{“id”:“90|85|83|84|82|81|80|28|99”,“limit”:9999,“offset”:0,“total_results”:9,“absolute_results”:9},“data”:[{“title”:“Liverpool”,“entry_id”:“90”,“entry_date”:“1434710160”},{“title”:“London”,“entry_id”:“85”,“entry_date”:“1434545640”},{“title”:“Glasgow”,“entry_id”:“83”,“entry_date”:“1434545580”},{“title”:“Oxford”,“entry_id”:“84”,“entry_date”:“1434545580”},{“title”:“Leeds”,“entry_id”:“82”,“entry_date”:“1434545520”},{“title”:“Birmingham”,“entry_id”:“81”,“entry_date”:“1434545520”},{“title”:“Manchester”,“entry_id”:“80”,“entry_date”:“1434545460”},{“title”:“Derby”,“entry_id”:“28”,“entry_date”:“1430394000”},{“title”:“Dazzle Ship prints”,“entry_id”:“99”,“entry_date”:“1438700640”}]}
The last entry (99) is not from the Cities channel being requested but from another Events channel. Entry 99 has a grid field with a text field value of ‘untitled’. When this dosent contain the string ‘untitled’ the entry isn’t pulled into the above response. It looks like the output_fields=title call in the request is also picking up entries with the string ‘title’ somewhere in their grid content. Do you see the issue?
This is on version 4.3.1
Thanks
Marc
|