public function getActivity($id, $fields = null, $alt = null)
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getOption('api.url') . 'activities/' . $id;

			// Check if fields is specified.
			if ($fields)
			{
				$url .= '?fields=' . $fields;
			}

			// Check if alt is specified.
			if ($alt)
			{
				$url .= (strpos($url, '?') === false) ? '?alt=' : '&alt=';
				$url .= $alt;
			}

			$jdata = $this->auth->query($url);

			return json_decode($jdata->body, true);
		}
		else
		{
			return false;
		}
	}
public function getActivity($id, $fields = null, $alt = null)
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getOption('api.url') . 'activities/' . $id;

			// Check if fields is specified.
			if ($fields)
			{
				$url .= '?fields=' . $fields;
			}

			// Check if alt is specified.
			if ($alt)
			{
				$url .= (strpos($url, '?') === false) ? '?alt=' : '&alt=';
				$url .= $alt;
			}

			$jdata = $this->auth->query($url);

			return json_decode($jdata->body, true);
		}
		else
		{
			return false;
		}
	}
public function getActivity ( $ id , $ fields = null , $ alt = null ) { if ( $ this -> isAuthenticated ( ) ) { $ url = $ this -> getOption ( 'api.url' ) . 'activities/' . $ id ; // Check if fields is specified. if ( $ fields ) { $ url .= '?fields=' . $ fields ; } // Check if alt is specified. if ( $ alt ) { $ url .= ( strpos ( $ url , '?' ) === false ) ? '?alt=' : '&alt=' ; $ url .= $ alt ; } $ jdata = $ this -> auth -> query ( $ url ) ; return json_decode ( $ jdata -> body , true ) ; } else { return false ; } }
Get an activity.

@param   string  $id      The ID of the activity to get.
@param   string  $fields  Used to specify the fields you want returned.
@param   string  $alt     Specifies an alternative representation type. Acceptable values are: "json" - Use JSON format (default)

@return  mixed  Data from Google

@since   1.0
Get an activity .