Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Invalid argument supplied for foreach() #164

Open
Shabba opened this issue Jan 17, 2013 · 0 comments
Open

Invalid argument supplied for foreach() #164

Shabba opened this issue Jan 17, 2013 · 0 comments

Comments

@Shabba
Copy link

Shabba commented Jan 17, 2013

Hello

First, thanks for the app, it work fine. Second, sorry for my english, it's not my every day language.

And third :
I got an issue when I try to acces $twitt->entities->urls if I make the request with : $twitt = $twitterObj->get_statusesShow(array('id' => $id)).
Not when I make the request with : $twitt = json_decode(file_get_contents('http://api.twitter.com/1/statuses/show/'.$id.'.json')).

PHP says "Invalid argument supplied for foreach()", but I can see with var_dump that there is entities->urls in the EpiTwitterJson object.

Is it because I got a EpiTwitterJson ?
I don't understand, because in both case I got an object.

I must, may be, "translate" the EpiTwitterJson on a stdClass ? But I don't know how to do this.

I would like to use : $twitt = $twitterObj->get_statusesShow(array('id' => $id)) to see the tws from protected accounts that following the user.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant