Creating Channel Points Redemptions Not Working

So for the first part, I took the code from Barry Carlyon’s Github where he had created a website to get you the access_token. And simply changed the client_id, redirect url, and added a scope in order for it to work with channel point redemption. It does give me a code, but I am unsure after what you said if its the access token or just a code. When using it later to get the access token and refresh token it seems to work fine.