-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Description
Although we cannot keep track of all the external APIs changes, we do have the opportunity to update Faker::Twitter after its rename:
- deprecate
Faker::Twitterin favour ofFaker::X - update
userto follow the API's updates. Some fields have been deprecated (see https://docs.x.com/x-api/enterprise-gnip-2.0/fundamentals/data-dictionary#no-longer-supported-deprecated-attributes) - include a note in the docs
- when it's releases, include a note in the CHANGELOG about the breaking changes:
This way, users of the current version can continue using Faker::Twitter, while being notified of the upcoming changes in the next version. When they are ready to update their faker version, they can use Faker::X with the updated attributes.
Example of user with deprecated attributes
Extracted from the docs: https://docs.x.com/x-api/enterprise-gnip-2.0/fundamentals/data-dictionary#no-longer-supported-deprecated-attributes
{
"id": 6253282,
"id_str": "6253282",
"name": "Twitter API",
"screen_name": "TwitterAPI",
"location": "San Francisco, CA",
"profile_location": null,
"url": "https:\/\/t.co\/8IkCzCDr19",
"description": "The Real Twitter API. Tweets about API changes, service issues and our Developer Platform. Don't get an answer? It's on my website.",
"protected": false,
"entities": {
"url": {
"urls": [{
"url": "https:\/\/t.co\/8IkCzCDr19",
"expanded_url": "https:\/\/developer.twitter.com",
"display_url": "developer.twitter.com",
"indices": [
0,
23
]
}]
},
"description": {
"urls": []
}
},
"followers_count": 6133636,
"friends_count": 12,
"listed_count": 12936,
"created_at": "Wed May 23 06:01:13 +0000 2007",
"favourites_count": 31,
"verified": true,
"statuses_count": 3656,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/942858479592554497\/BbazLO9L_normal.jpg",
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_images\/942858479592554497\/BbazLO9L_normal.jpg",
"default_profile": false,
"default_profile_image": false,
}DeepakRaj228DeepakRaj228
Metadata
Metadata
Assignees
Labels
No labels