标签云

微信群

扫码加入我们

WeChat QR Code

I am using rest API to get invoices whose create date is greater than some date (eg: After 1st September 2015).GEThttps://{{sluser}}:{{slkey}}@api.softlayer.com/rest/v3.1/SoftLayer_Account/getInvoices?objectFilter={"createDate":{"operation":"greaterThanDate","options":[{"name":"date", "value":"10/01/2015"}]}}&resultLimit=1,5but this seems to be giving first 5 invoices. May I now what is wrong in the objectFilter? Also how can I specify the date format dd-MM-YYYY or mm-dd-yyyy or yyyy-mm-dd?


I would remove the references in this answer. The first one shows specifying the value as a string, and not as an array of one string. This without clarification of the difference makes looking up the reference confusing. The second points you to other examples using filters, but none of them use the date filters. You can see, however, examples of the form used in this answer on softlayer.github.io/ruby/getNotifications and softlayer.github.io/python/notifications.

2019年04月19日32分11秒