Update status under Twitter API v1.1 using tmhOauth

Before ( API 1 )

function update($text)
{
	$this->twitter->request('POST', $this->twitter->url('1/statuses/update'), array(
		'status' => $text
	), true, false);
	return $this->isSucceeded();
}

After ( API 1.1 )

function update($text)
{
	$this->twitter->request('POST', $this->twitter->url('1.1/statuses/update'), array(
		'status' => $text
	), true, false);
	return $this->isSucceeded();
}

ref. REST API v1.1 Resources | Twitter Developers


Leave a comment

Your comment

*