Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 920 Bytes

twitter.md

File metadata and controls

25 lines (20 loc) · 920 Bytes

Faker::Twitter

Generate realistic Twitter user and status objects similar to what you would get back from the API.

{
  "created_at": "Mon Dec 10 00:00:00 +0000 2012",
  "id": 8821452687517076614,
  "id_str": "8821452687517076614",
  "text": "Ea et laboriosam vel non.",
  // ...
}
Faker.Twitter.user() //=>  {id: 8821452687517076614, name: "Lincoln Paucek", screen_name: "cody"...
Faker.Twitter.user({includeStatus: false}) // Just get a user object with no embed status
Faker.Twitter.user({includeEmail: true}) // Simulate an authenticated user with the email permission

Faker.Twitter.status() //=> {id: 8821452687517076614, text: "Ea et laboriosam vel non."...
Faker.Twitter.status({includeUser: false}) // Just get a status object with no embed user
Faker.Twitter.status({includePhoto: true}) // Includes entities for an attached image

Faker.Twitter.screenName() //=> "audreanne_hackett"