Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6005491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:24:17+00:00 2026-05-23T01:24:17+00:00

I’m trying to write a twitter program to get my tinme line. I’m using

  • 0

I’m trying to write a twitter program to get my tinme line. I’m using Abraham
Williams authentication code. I cannot figure out how to pharse the return value. I think it is return a stdClass, which I’m confused about how it works. I can display the objects values by print_r. I was able to see what the xml and json return values would be at http://dev.twitter.com/doc/get/statuses/home_timeline.

code

// Read in our saved access token/secret
$accessToken = file_get_contents("access_token");
$accessTokenSecret = file_get_contents("access_token_secret");
// Create our twitter API object
require_once("twitteroauth/twitteroauth.php");
$oauth = new TwitterOAuth('mykey', 'secret key', $accessToken, $accessTokenSecret);
// Send an API request to verify credentials
$credentials = $oauth->get("account/verify_credentials");
echo "Connected as @" . $credentials->screen_name;
// Post our new "hello world" status

$home_timeline = $oauth->get('statuses/home_timeline',array('count' => 40));  
print_r($home_timeline);
// how do i get the information out of home_timeline
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:24:18+00:00Added an answer on May 23, 2026 at 1:24 am

    GET statues/home_timeline returns an array of statues. You can either access them directly like $home_timeline[0]->text or write a foreach loop.

    foreach ($home_timeline as $status) {
      echo "Tweet: $status->text<br />\n";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to figure out how to get the most recent latitude and longitude
I'm trying to write a blog post which includes a code segment inside a
I am trying to write a twitter client application in python. I would like
I am learning Python and PyGTK. I'm trying to write a Twitter client. Which
I am trying to write an php twitter script which will be run by
I am trying to perform a Twitter search using the PEAR package Services_Twitter. Unfortunately
I'm trying to replicate twitter's fade out layer at the bottom of the feed
Trying to write a GLOBAL CBT HOOK, this is My code, but my hooking
Im trying to write an algorithm using the algorithm package, but when I use
I'm trying write a query to find records which don't have a matching record

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.