Skip to content

Conversation

@thenora
Copy link

@thenora thenora commented Mar 16, 2020

Assignment Submission: Slack CLI

Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.

Reflection

Question Answer
How did you go about exploring the Slack API? Did you learn anything that would be useful for your next project involving an API? I used Postman to run sample queries and look at what the output would look like. It helped me understand how to pull the variables from the data.
Give a short summary of the request/response cycle. Where does your program fit into that scheme? My program makes a request through the API of the server.
How does your program check for and handle errors when using the Slack API? the slack API has a strange way of handling error messages, it sometimes returns a 200 status even if it failed. I have an or statement that says if the code isn't a 200, or if OK equals false, it gives the user an error message.
How did the design and organization of your project change over time? I initially left the recipient class pretty empty and went back to fill it in after building both the User and Channel class.
Did you use any of the inheritance idioms we've talked about in class? How? User and Channel inherit from Recipient, which has the common attributes of slack_id and name.
How does VCR aid in testing a program that uses an API? It helps record responses made by my code. The tests are stored as episodes in a cassette. That way it doesnt have to call the API every time I run a test, it can return a recorded response instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant