I'm trying to make an external REST API call to rest.php. I was getting "Unable to decode supplied JSON", but then I figured out I could take the values I was stuffing into json (from the API Explorer) and then make them their own parameters (REST API without JSON just key=value).

I'm trying to request contributions between two dates. In the json style as shown in the API Explorer, it's like this:


I'm trying this, and it's not working:


Any ideas?


I just figured it out:

  • Great, you can mark your answer as best answer.
    – samuelsov
    Dec 22 '17 at 13:24
  • Your answer helped me generalize this to other OR searches, for instance (using REST format, v3 API) &last_name[]=name1&last_name[]=name2 Thx!
    – cfritze64
    Nov 21 '20 at 18:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.