Closed antaranyan closed 1 year ago
For given username, it should open that user's Twitter profile page, and read details such as name, profile image, bio, etc.
For the user @qeri55916757 it should yield
{ name: "Qeri", username: "qeri55916757", bio: "He's the best uncle ever! He's always up for a good time. He's also a philanthropist." }
These can be abstracted away in UserProfileView and passed into main function as a configurable dependency (see dependency injection)
UserProfileView
Expected function signature, assuming we have defined type for TwitterUserDetails
TwitterUserDetails
type ObtainTwitterUserDetails = async (username: TwitterUsername) => Promise<TwitterUserDetails>
For given username, it should open that user's Twitter profile page, and read details such as name, profile image, bio, etc.
Example
For the user @qeri55916757 it should yield
Abstract instructions
These can be abstracted away in
UserProfileView
and passed into main function as a configurable dependency (see dependency injection)