PHP Interface Happyr\LinkedIn\Http\LinkedInUrlGeneratorInterface

Author: Tobias Nyholm ([email protected])
Datei anzeigen Open project: happyr/linkedin-api-client Interface Usage Examples

Public Methods

Method Description
getUrl ( $name, $path = '', $params = [] ) : string Build the URL for given domain alias, path and parameters.

Method Details

getUrl() public method

Build the URL for given domain alias, path and parameters.
public getUrl ( $name, $path = '', $params = [] ) : string
$name string The name of the domain, 'www' or 'api'
$path string without a leading slash
$params array query parameters
return string The URL for the given parameters. The URL query MUST be build with PHP_QUERY_RFC3986