pconkie Posted May 11, 2019 Share Posted May 11, 2019 Is there a way to filter by creation date when getting entries? FrogOS.fdp({ url: 'datastore/get', path: '/api/fdp/2/', type: 'GET', data: { target_uuid: myid, created_on: {from: '1557579988', until: '1557589988'} } Something like the above returns entries without error but only entries created on 1557579988 NOT between those two date-times. Similarly leaving out the 'until' portion altogether. Thanks Link to comment Share on other sites More sharing options...
adamw Posted May 13, 2019 Share Posted May 13, 2019 On 11/05/2019 at 14:25, pconkie said: Is there a way to filter by creation date when getting entries? FrogOS.fdp({ url: 'datastore/get', path: '/api/fdp/2/', type: 'GET', data: { target_uuid: myid, created_on: {from: '1557579988', until: '1557589988'} } Something like the above returns entries without error but only entries created on 1557579988 NOT between those two date-times. Similarly leaving out the 'until' portion altogether. Thanks Sure, try this: FrogOS.fdp({ url: 'datastore/get', path: '/api/fdp/2/', type: 'GET', data: { target_uuid: myid, created_on_after: '1557579988', created_on_before:'1557589988' } You should also be able to use, created_on_after_inclusive and created_on_before_inclusive, which does as the name implies. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now