Basic Twitch Connect OAuth Help

This is a long post which basically says I don’t understand how to POST my code after authorisation to get my access token, I tried my own Curl and failed, tried to use someone’s class and failed.

Anyone have any documentation or anything they can point me too? I’ve been trying for hours and it is probably simple and I am just missing something simple.

Thanks,