Need help getting client secret

I’m trying to get client_secret from twitch api via a get request or a curl command. How do I do so?

If that’s not possible, what are the alternate methods i can use to get client_secret, but through code only?

You don’t. The client secret is on the developer console. You copy and paste it into your code.

1 Like

Or, slightly better yet: Into a config file or Environment Variable.

Hard-Coding it is good for testing, but make sure to not accidentally share your secret, for example by pushing your code to a public github repository.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.