Trying to make the following code to work, and no success so far.
I have the following in Tumblr_Social.php class:
public function tumblr_post()
{
$blog = eden('tumblr')->debug(true)->blog($tumblr_config['tumblr_key'], $tumblr_config['tumblr_secret'], $tumblr_config['tumblr_access_token'], $tumblr_config['tumblr_secret_token']);
$post = $blog->postText($tumblr_config['tumblr_url'], 'Poraka', 'Naslov');
return $post;
}
and then in tumblr_post.php:
<?php
include('Tumblr_Social.php');
$test = new Tumblr_Social();
$post = $test->tumblr_post();
?>
I got printed all OAuth params on debug screen, and event log is empty.
I even tried to post with static OAuth params (I've already obtained consumer access/secret and access/secret tokens), and no result as well.
I'm using Eden one file. Is this the problem?
Where did I go wrong?
Trying to make the following code to work, and no success so far.
I have the following in Tumblr_Social.php class:
and then in tumblr_post.php:
I got printed all OAuth params on debug screen, and event log is empty.
I even tried to post with static OAuth params (I've already obtained consumer access/secret and access/secret tokens), and no result as well.
I'm using Eden one file. Is this the problem?
Where did I go wrong?