The Authentication Docs are a great starting place. It walks you through the process of creating an App on Twitch, and then step by step each of the OAuth flows to get an Access Token.
If you’re attempting to get an App token through the Client Credentials flow and it’s not working for you, show as your code so far that’s failing and what error you’re getting and maybe we can assist.