What do you get if you add:

var_dump($data);

On Tue, May 12, 2009 at 14:05, Yazmin <ywick...@gmail.com> wrote:

>
> Sadly I need more clarification...and possibly a code example.
>
> Using PHP, I know that I can successfully get a feed of a user's
> latest statuses using this code:
>
>                $ch = curl_init();
>                curl_setopt($ch, CURLOPT_URL, $url);
>                curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
>                curl_setopt($ch, CURLOPT_USERPWD, "$this->Username:$this-
> >Password");
>                $xml = curl_exec($ch);
>
>                $data = simplexml_load_string($xml);
>
> However, when I send an update, the same code, with the addition of a
> line for CURLOPT_POST, returns nothing for me:
>
>                $ch = curl_init();
>                curl_setopt($ch, CURLOPT_URL, $url);
>                curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
>                curl_setopt($ch, CURLOPT_USERPWD, "$this->Username:$this-
> >Password");
>                curl_setopt($ch, CURLOPT_POST, 1);
>                $xml = curl_exec($ch);
>
>                $data = simplexml_load_string($xml);
>
> I must be missing something here, right? So what am I not doing right?
>
> Thanks!
>
>
> On May 9, 3:57 pm, Chad Etzel <jazzyc...@gmail.com> wrote:
> > When you post a newstatusupdate, the return value/information should
> > contain the newidof the update.
> > -Chad
> >
>



-- 
Abraham Williams | http://the.hackerconundrum.com
Hacker | http://abrah.am | http://twitter.com/abraham
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, Wisconsin, United States

Reply via email to