Käynnissä

Simple PHP script to fetch Twitter user data

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)

*/

}

}

Taidot: PHP, tietojärjestelmäarkkitehtuuri, Twitter

Näytä lisää: help php script, adams 14, david data, verified user, 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, php script echo, need verified followers, account followers verified

About the Employer:
( 41 reviews ) 7-15 Pink Lane, United Kingdom

Projektin tunnus: #4245042

Myönnetty käyttäjälle:

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 Lisää

60 £ GBP 2 päivässä
(37 arvostelua)
5.3

14 freelanceria on tarjonnut keskimäärin 144 £ tähän työhön

toinnisfree

pls chk pmb

185 £ GBP 3 päivässä
(522 arvostelua)
7.8
geekydeveloper

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

185 £ GBP 3 päivässä
(121 arvostelua)
7.4
TechVillage

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

175 £ GBP 5 päivässä
(90 arvostelua)
6.8
gopalvora

ready to start Thanks

110 £ GBP 5 päivässä
(131 arvostelua)
6.7
frkSuna

I can do it. Please check your PMB

190 £ GBP 2 päivässä
(106 arvostelua)
5.9
mushrraf

Hello! Please view P.M.B.

150 £ GBP 10 päivässä
(72 arvostelua)
5.4
strangerrichie

Please check your inbox.

150 £ GBP 4 päivässä
(2 arvostelua)
2.7
parthuji

4 years exp and quality work assured

150 £ GBP 5 päivässä
(4 arvostelua)
2.7
chanakalin

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

75 £ GBP 5 päivässä
(2 arvostelua)
1.6
sajibdey

Lets do it.....

139 £ GBP 5 päivässä
(1 arvostelu)
1.0
digiclay1

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

200 £ GBP 10 päivässä
(0 arvostelua)
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 Lisää

100 £ GBP 4 päivässä
(0 arvostelua)
0.0
unosolution

Fb/Twitter experts

150 £ GBP 7 päivässä
(0 arvostelua)
0.0