The implemented solution uses the getenv() function to pull the value of the MYANIMELIST_CLIENT_ID environment variable to set as the client id value used for pulling API data. If both the environment variable and the hard coded value is not found, a proper error message is displayed to the user (as opposed to a segmentation fault).
👇 Click on the image for a new way to code review
####
[![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/jmakhack/myanimelist-cli/108/6b5df9c8/5a68755c900b378588f00ee7e0dc13b36bf15310.svg)](https://app.codesee.io/r/reviews?pr=108&src=https%3A%2F%2Fgithub.com%2Fjmakhack%2Fmyanimelist-cli)
#### Legend
Associated Issue
Closes #99
Implemented Solution
The implemented solution uses the
getenv()
function to pull the value of theMYANIMELIST_CLIENT_ID
environment variable to set as the client id value used for pulling API data. If both the environment variable and the hard coded value is not found, a proper error message is displayed to the user (as opposed to a segmentation fault).