Jump to content

Twitter API showUser


karthiksharu

Recommended Posts

I just started working with TwitterAPI. For the below code,

 

<?php

 

include_once("twitter.lib.php");

 

$user = "//myusername";

$pw = "//mypassword";

 

$twitter = new Twitter($user,$pw);

 

$xml = $twitter->showUser("xml", $user);

 

var_dump($xml);

echo $xml;

 

?>

 

karthiksharu is my user name.

 

var dump outputs - http://twitter.com/users/show.karthiksharu? bool(false)

 

http://twitter.com/users/show.karthiksharu?  link doesnt exist.

 

Expected is an xml with tags

 

user

    id

    name

    screen

    location

    description

    profile..  and so on..

 

 

 

Can any one help me with this?????

 

thanks

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/159278-twitter-api-showuser/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.