You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`headers` - An associative array of HTTP headers and values to be included in every request.
32
-
`parameters` - An associative array of parameters to be merged with individual request parameters in every request.
33
-
`curl_options` - cURL options to apply to every request. These will override any automatically generated values.
34
-
`user_agent` - User agent string.
32
+
`parameters` - An associative array of URL or body parameters to be included in every request.
33
+
`curl_options` - cURL options to apply to every request; anything defined here: https://secure.php.net/manual/en/function.curl-setopt.php. These will override any automatically generated values.
34
+
`user_agent` - User agent string to use in requests.
35
35
`base_url` - URL to use for the base of each request.
36
-
`format` - Format to append to resource and support decoding.
37
-
`format_regex` - Pattern to extract format from response Content-Type header.
38
-
`decoders` - Associative array of format decoders, see documentation below.
39
-
`username` - Username to use for basic authentication. Requires `password`.
40
-
`password` - Password to use for basic authentication. Requires `username`.
36
+
`format` - Format string is appended to resource on request (extension), and used to determine which decoder to use on response; a request URL like "api.twitter.com/1.1/statuses/user_timeline.json" would be expected to return well-formed JSON.
37
+
`format_regex` - Pattern to extract format from response Content-Type header, used to determine which decoder to use on response.
38
+
`decoders` - Associative array of format decoders. See ["Direct Iteration and Response Decoding"](#direct-iteration-and-response-decoding).
39
+
`username` - Username to use for HTTP basic authentication. Requires `password`.
40
+
`password` - Password to use for HTTP basic authentication. Requires `username`.
41
41
42
42
Options can be set upon instantiation, or individually afterword:
0 commit comments