Skip to content

Conversation

@jetabajrami
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? Yes, I got more comfortable exploring and having a better understanding for API in general
Give a short summary of the request/response cycle. Where does your program fit into that scheme? I sent the request through self.list all in channel, This method use self.get method and pass URL as a parameter, Self.get in Recipient use HTTParty gem to send request and get response for list of all channels.
How does your program check for and handle errors when using the Slack API? Check through the block of code if response["ok"] equals true or false, and response.code != 200(which is not entirely useful for Slack API.) A SlackAPIError is raised if response["ok"] != true
How did the design and organization of your project change over time? I changed the position of some methods, But in higher level design of inheritance and composition was quite consistent.
Did you use any of the inheritance idioms we've talked about in class? How? Recipient is an abstract class. I used template methods self.list all and #details.

Recipient is an abstract class. I used template methods self.list all and #details.

ow does VCR aid in testing a program that uses an API? | Eliminate the time, cost, and possible instability of additional API calls when running tests. |

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