I am a terrible person to respond to this topic as I have never attempted such a thing, but this got me curious and a response might bump the thread. I assume you have seen the (language agnostic) information on the wiki?
From the sounds of it if suitable gobbledegook is used for the redirect URI it should be possible to use a normal web browser for steps 1-4 and manually copy-paste the resulting code into the curl request for step 5.
Sounds like curl should be able to pass the required header OK from what’s shown on this page. Would that change things much from what you were doing before?
Policy-wise are all scripts meant to be tested against the dev server first?
Yes. I was planning to write it up. Thanks for the reminder. It was a bit of a palaver - why do all developers assume no ones uses Windows?!
Give me a couple of days.
Because apparently if you spend 6 years memorising the guts of linux you start to think that it’s somehow easier than an OS that doesn’t require you to be able to do laparoscopic surgery in order to fix anything that goes wrong and doesn’t require you to recompile all your organs in order to get two programs to play nice with each other.