Skip to content

Conversation

@mheshmati-tech
Copy link

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 learned a lot about API and became more comfortable using them. I do feel like I need more practice in terms of if the API errors and how to trouble shoot.
Give a short summary of the request/response cycle. Where does your program fit into that scheme? request response starts when a user makes a request which are different things but in my program in included getting information and requesting to send a message. the request will then go to the server via the API address and the server will process the request. Depending on how the request goes, a response will be sent letting the user know if their request was processed successfully or not. code 200 or okay is the most common and means that the request has been processed as expected.
How does your program check for and handle errors when using the Slack API? This is something I had a lot of difficulty with since I wasn't sure how exception handling and API errors should be translated into other classes but I raise an exception when the API request is not code 200/okay and if it is return the request.
How did the design and organization of your project change over time? It changed slightly since we were almost given the design. The more I worked on the project the better understanding I got of why the design is as it is.
Did you use any of the inheritance idioms we've talked about in class? How? Yes, Recipient is the parent class that inherits into user and channel class. it is also an abstract class since it is never instantiated.
How does VCR aid in testing a program that uses an API? VCR is supposed to record a response and so moving forward with using the test, you can use that record to check on other requirements. I wasn't aware of that at the beginning however and so whenever I was testing for a method I created a new VCR cassette which should explain why I have so many yml files.

…he API to access data and return a list of all user and channel lists respectively
…d is intended to interact with slack.rb- it's attributes include list of all users and all channels
…channels\nlist users\nquit>- this class is responsible for interacting with the user
…called on send_message so user can send a message
…command for the user- finishes wave 3, still needs refactoring------
…far- haven't been tested for sending messages or details
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