Re: Off topic - Curl experts

Joseph Feldman

Hi Graham,

If you put the code in the command you have to put a backslash before each doublequote and bracket like this \{\"field_filters\":\[\{\"key\":\"date_created\",\"value\":\"03/30/2021\",\"operator\":\"is\"\}\]\}"  or you can use the Curl command "--globoff " for the brackets. or you can have it in a file and use the @Filename.

Joseph Feldman

On Tue, Apr 13, 2021 at 4:39 PM Graham White <graham.white@...> wrote:

Thanks for your reply.  I am not sure what you mean by “your enter key is broken”?

I have been struggling with this and can’t seem to get it to work no matter what format I have the date in.  Below is the best I seem to get but it never gives me the data for March.  I am a bit lost now and I hope you may be able to help.



curl -g -k -X POST --header "Content-Type: application/json"  --header "Authorization: Basic OURKEY" https://www.OURWWW/wp-json/gf/v2/entries?search={%22field_filters%22:%20[{%22key%22:%22date_created%22,%22value%22:%2230/03/2021%22,%22operator%22:%22is%22}




Graham White

Join to automatically receive all group messages.