Hi, I was trying to create a macro on Keyboard Maestro to help me push some data to YNAB API (which is awesome, btw), but could not find a way to place an API call with my variables.
That’s kinda odd, since I’m able to do this very easily on iOS Shortcuts…
Can you guys point me to a very simple way to help me automate this on my Mac?
I’m just about to turn in as it is rather late here in the UK, so I don’t have time to check right now.
I don’t see anything obviously wrong in terms of quotes, KM variable formats or the like (I haven’t checked the curl parameters). However, try echo-ing out the command you are sending and tracking what substitutions are actually being made, if any. Check that your date variable is actually set by simply outputting each it, or in fact each parameter, with an echo before the curl line. Perhaps even check with an action output in KM itself to rule out setting vs. substitution issues.
If you happen to be a complete novice on curl as I still am, I’d recommend copying the codes from api.airtable.com and trying out yourself. It may look a bit daunting at first, but it most surely is not!