- Crafting an object model.
There are many objects included in all Twitter APIs, such as Users, Entities, Tweets, and Places which are the 4 main objects. Each of them has its own set of attributes that you can find in the open access.
To create an object model, one needs a diagram. So, choose 'Diagram' - 'New' in the toolbar. Select 'Class Diagram' in the new window and enter API overview in the Diagram name field. Confirm the operation.
2. Drawing a class for the tweet object.
Choose 'Class' - 'Tweet' (name it). Add attributes to this object. Next, enter 'createdAd: String' in order to add an attribute 'createdAt,' Press Enter.
The system will prompt you to create other attributes, too, in the same way as in this Twitter REST API example above.
3. Press Esc when you no longer need to add attributes.
4. Describe each attribute in the class. Do it in the Descriptio Editor (at the bottom right corner of the application window).