Simple PHP script to fetch Twitter user data

In Progress

Write a script to retrieve user data from Twitter. The script will first require the user to login via their Twitter account, then A) retrieve user data from five of the user's followers and B) retrieve user data from five followers of another randomly selected Twitter user. So the output will be two lists, each containing five Twitter users.

Here is a pseudocode to help explain the script:

// Require user to login via unprotected Twitter account

if (not logged in) { // Please login }

else

{

// Logged in

// User = "User A"

if (account protected) { echo "Sorry, you need an unprotected account to use this service"; }

else

{

// Display @username and Twitter ID (number) of "User A"

// echo "User A: ".$username." (".$twitterid.")";

// Task A:

// Fetch 5 random Twitter users (with unprotected accounts) who follow "User A"

// (if "User A" has less than 5 unprotected followers, fetch any 5 random Twitter users with unprotected accounts)

// For each of of these 5 Twitter users, fetch and display:

// Twitter ID (number)

// @username

// Name

// Tweets

// Following

// Followers

// Listed

// Date Joined

// Avatar

// Verified

// Fetch 1 random Twitter user (any Twitter user whose account is not protected)

// User = "User B"

// Display @username and Twitter ID (number) of "User B"

// echo "User B: ".$username." (".$twitterid.")";

// Repeat Task A for "User B"

// Example output:

/*

User A: @JohnSmith (1234567890)

@Follower1 (3493243984)

John Smith

Tweets: 10,420

Following: 249

Followers: 588

Listed: 29

Date Joined: 29-11-2010

Avatar: [ IMG ]

Verified: No

@Follower2 (3493984722)

David Jones

Tweets: 7,990

Following: 1,205

Followers: 717

Listed: 12

Date Joined: 03-08-2011

Avatar: [ IMG ]

Verified: No

@Follower3 (7349471088)

Richard Adams

Tweets: 34,664

Following: 121

Followers: 13,908

Listed: 44

Date Joined: 04-12-2009

Avatar: [ IMG ]

Verified: Yes

@Follower4 (9632490349)

Sarah Biscuit

Tweets: 8,209

Following: 809

Followers: 1,084

Listed: 102

Date Joined: 24-01-2012

Avatar: [ IMG ]

Verified: No

@Follower5 (1010391279)

Laura McBain

Tweets: 412

Following: 188

Followers: 34

Listed: 0

Date Joined: 19-01-2013

Avatar: [ IMG ]

Verified: No

(repeat for User B)

*/

}

}

Skills: PHP, Software Architecture, Twitter

See more: help with php script, adams 14, david data, write a simple php script, verified user, twitter verified, twitter account verified, sarah, Pseudocode, laura, fetch, fetch data, protected account number, accounts tweets, help pseudocode, php random name, script follow php twitter, php follow twitter, random name php, avatar simple, simple task script, random img, random data, twitter help, twitter verified followers

Project ID: #4245042

Awarded to:

metrixmedia

Hello, I have extensive working experience using the Twitter API along with over 10 years experience developing dynamic web applications. You can expect a top-class solution to solve this project's requirements from me More

£60 GBP in 2 days
(37 Reviews)
5.3

14 freelancers are bidding on average £144 for this job

toinnisfree

pls chk pmb

£185 GBP in 3 days
(522 Reviews)
7.8
geekydeveloper

Hello Mate, We have 6 years of experience of core development and we have Experienced team

£185 GBP in 3 days
(121 Reviews)
7.4
TechVillage

I have good experience in Twitter APIs. Please view private message for details.

£175 GBP in 5 days
(90 Reviews)
6.8
gopalvora

ready to start Thanks

£110 GBP in 5 days
(131 Reviews)
6.7
frkSuna

I can do it. Please check your PMB

£190 GBP in 2 days
(106 Reviews)
5.9
mushrraf

Hello! Please view P.M.B.

£150 GBP in 10 days
(72 Reviews)
5.4
strangerrichie

Please check your inbox.

£150 GBP in 4 days
(2 Reviews)
2.7
parthuji

4 years exp and quality work assured

£150 GBP in 5 days
(4 Reviews)
2.7
chanakalin

Ready to create it for you. Please check my message.

£75 GBP in 5 days
(2 Reviews)
1.6
sajibdey

Lets do it.....

£139 GBP in 5 days
(1 Review)
1.0
digiclay1

Hi, We can start work immediately and we will provide you the daily updates.

£200 GBP in 10 days
(0 Reviews)
0.0
Niveshsaharan

Hi,I am an web developers and designer having experience of developing myriad websites. I guarantee you 100% satisfaction on the project. I will provide you the custom api to fetch all the required data from Twit More

£100 GBP in 4 days
(0 Reviews)
0.0
unosolution

Fb/Twitter experts

£150 GBP in 7 days
(0 Reviews)
0.0