How can I get Authorization OAuth token?

Ok…this gets back to what i did when I tried to get the token for the first time…

After I get the code, i put the following code in the terminal:

curl -POST https://api.twitch.tv/kraken/oauth2/token?client_id=tj0wb2g05lyddfklsur2nuqcmfi86h&client_secret=MyClientSecret&code=MyCode&grant_type=authorization_code&redirect_uri=http://localhost

And returned {“error”:“Not Found”,“status”:404,“message”:null}…