コード例 #1
0
 /**
  * Utility function to create the request URL in the requested format.
  * 
  * If a fully-qualified URI is provided, it will be returned.
  * Any multi-slashes (except for the protocol) will be replaced with a single slash.
  *
  * @param string $request the API method without extension
  * @param string $extension the format of the response. Default json. Set to an empty string to exclude the format
  * @return string the concatenation of the host, API version, API method and format, or $request if it begins with http
  * @static 
  */
 public static function url($request, $extension = 'json')
 {
     //Method inherited from \tmhOAuth
     return \Thujohn\Twitter\Twitter::url($request, $extension);
 }