Thanks, is there any way I would be able to do it without the password?
On Jun 19, 12:53 am, Peter Denton <[email protected]> wrote: > you can do something like this > > function getUserInfo($screen_name) > { > $mas_username = 'YOURUSERNAME'; > $mas_password = 'YOURPASSWORD'; > > $host = "http://twitter.com/users/show/$screen_name.xml"; > $ch = curl_init(); > curl_setopt($ch, CURLOPT_URL, $host); > curl_setopt($ch, CURLOPT_HEADER, false); > curl_setopt($ch, CURLOPT_VERBOSE, 1); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > curl_setopt($ch, CURLOPT_USERPWD, "$mas_username:$mas_password"); > curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); > $result = curl_exec($ch); > $responseInfo=curl_getinfo($ch); > curl_close($ch); > > $status_code = intval($responseInfo['http_code']); > switch($status_code) { > case 200: > if (simplexml_load_string($result)) { > $xml = new SimpleXMLElement($result); > print_r($xml); > } > break; > } > } > > > > On Thu, Jun 18, 2009 at 4:44 PM, Slicey <[email protected]> wrote: > > > I'm trying to create a clone of the users twitter page. > > > On Jun 19, 12:25 am, JDG <[email protected]> wrote: > > > Maybe I'm missing something here, but can't you just create a link to " > >http://twitter.com/$username" ? > > > > On Thu, Jun 18, 2009 at 14:47, Slicey <[email protected]> wrote: > > > > > I'm currently building a site in PHP where a user enters their > > > > username and uploads an audio clip to our site. Then the get a tiny > > > > url where they can view their twitter profile with the audio clip on > > > > it. > > > > > Is it possible to call a users profile by their username through php? > > > > -- > > > Internets. Serious business. > > -- > Peter M. Dentonwww.twibs.com > [email protected] > > Twibs makes Top 20 apps on Twitter -http://tinyurl.com/bopu6c
