![]() |
MeNeedz Twitter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: MeNeedz Twitter (/showthread.php?tid=25789) |
MeNeedz Twitter - El Forum - 07-15-2010 [eluser]davidbehler[/eluser] Numer of followers: Build a custom function just like takasia did and call the users/show method from the Twitter API. List of followers: I guess for that you would have to call statuses/followers, again with a custom functin you build. The library is very flexible, using the request() method you can get pretty all you want from Twitter. MeNeedz Twitter - El Forum - 07-15-2010 [eluser]Naveen Reddy[/eluser] I know it will sound silly, but how do i get the user id of a user using twitter api?! MeNeedz Twitter - El Forum - 07-19-2010 [eluser]takasia[/eluser] Hi waldmeister! I have another question. Can I use z OAuth with your library? If yes - could you tell me how? Thanks a lot in advance :-) Kasia MeNeedz Twitter - El Forum - 07-20-2010 [eluser]davidbehler[/eluser] Mh..I'm sorry, I've yet to work with oAuth. If oAuth requires some kind of request send by you, then it should be doable. Otherwise I don't know. Have you checked the forum for oAuth implementations? MeNeedz Twitter - El Forum - 07-20-2010 [eluser]Naveen Reddy[/eluser] I have managed to interact with twitter, but as a response i am getting an array, now how should i parse that array. It is also giving error of stdclass cant be used as a string. Thanks in advance. MeNeedz Twitter - El Forum - 07-20-2010 [eluser]davidbehler[/eluser] Where does the error happen? In my library or somewhere in your code? what does a var_dump or print_r of the array show? MeNeedz Twitter - El Forum - 07-20-2010 [eluser]Naveen Reddy[/eluser] Your library is working absolutely fine... There's nothing with that, I just used your method to access user_timeline in the controller and as a response i got an array. I want to pass this array to show the username and time when he tweeted etc. In short I just want to parse the array returned from the call. thanks. MeNeedz Twitter - El Forum - 07-20-2010 [eluser]davidbehler[/eluser] What does the array look like? My library takes the json response from the twitter api and turns it into an array, because arrays are easier to work with than json strings. MeNeedz Twitter - El Forum - 07-20-2010 [eluser]Naveen Reddy[/eluser] Code: array(15) { MeNeedz Twitter - El Forum - 07-20-2010 [eluser]davidbehler[/eluser] Code: echo $array[0]->user->location; This doesn't look like the response I expected from user_timeline, but maybe you are calling something else. |