PHP Class Prose\FromCurl

great for testing APIs
Inheritance: extends Prose
Show file Open project: datasift/storyplayer

Public Methods

Method Description
get ( mixed $url, array $params = [], array $headers = [] ) : object | string get

Method Details

get() public method

get
public get ( mixed $url, array $params = [], array $headers = [] ) : object | string
$url mixed URL to request
$params array GET params to add to the URL
$headers array HTTP headers to use
return object | string Response sent by the server. If it's JSON, we'll decode it