/api/users
return User
resources.url = 'https://codecombat.com/api/users'
json = { name: 'A username' }
auth = { name: CLIENT_ID, pass: CLIENT_SECRET }
request.get({ url, json, auth }, (err, res) => console.log(res.statusCode, res.body))
We strongly recommend using a secrets manager for storing your client secret.
Plain text files like dotenv lead to accidental, costly leaks. Use
Doppler for a developer-friendly experience. AWS and
Google Cloud have native solutions as well.