You are here

public function TwitterStatus::getURL in Twitter 7.5

Returns the status URL at Twitter.com

Return value

String URL or FALSE if no user object is present.

File

./twitter.lib.php, line 1425
Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1

Class

TwitterStatus
Class for containing an individual twitter status.

Code

public function getURL() {
  if (empty($this->user->screen_name)) {
    return FALSE;
  }
  return TWITTER_HOST . '/' . $this->user->screen_name . '/status/' . $this->id;
}