All, I have the following code to get some posts from Tumblr:
$baseHostname = "name.tumblr.com";
$tumblrConsumerKey = "asfd"; # use your own consumer key here
$humblr = new Humblr($baseHostname, $tumblrConsumerKey);
$post = $humblr->getPosts(array('limit' => 1));
print_r($post);
This works fine and gives me a result of something like this:
Array (
[0] => stdClass Object (
[blog_name] => name
[id] => 43993
[post_url] => http://name.tumblr.com/post/43993/
[slug] => slug
[type] => video
[date] => 2013-02-25 18:00:25 GMT
[timestamp] => 1361815225
[state] => published
[format] => html )
I try and display some values like this:
echo "The blog name is: ".$post->blog_name;
echo $post->id;
However, it is blank. How can I display these values?
Thanks