- Fix: add missing require statement
- Refactor interface for requesting custom response fields
Heads up, the argument to request fields was previously called tweet_fields; it is now called fields.
api.get_tweet(id: '123455683780', fields: requested_fields)The fields parameter now supports multiple different data types (instead of just Tweet attributes). So for example, to request the URL of an embedded media item:
requested_fields = { tweet: %w[id username], media: %w[url] }
api.get_tweet(id: my_id, fields: requested_fields)- Fix: broken dependency
- Add
search - Finish
rdoccoverage
- Add
User-Agentrequest header - Add
hide_reply
- Refactor structure to prepare for adding additional API endpoints
- Add
get_users_by_username - Add some test coverage
- Better exception-handling: when API returns an error, a
TwitterLabsAPI::APIErroris thrown. It has theNet::HTTPresponse as an attribute so that the error can be handled properly. See the README for an example.
- Fix: namespace of error class
- Fix: Handle 'successful' API errors (i.e., HTTP 200 response, but API error such as User Not Found)
- Documented expansion fields
- Documented methods
Initial gem commit