Interface HttpInterface
A basic interface for HTTP clients
Methods summary
public
PipelinerSales\ApiClient\Http\Response
|
#
request( string $method, string $url, string $rawPayload = null, string $contentType = 'application/json' )
Sends a HTTP request
Parameters
- $method
- HTTP method
- $url
- The URL
- $rawPayload
Body of the request in case of POST/PUT requests. Must already
be encoded in the form expected by the server. Pipeliner's server expects JSON.
- $contentType
- If $rawPayload is not null, specifies the content of the Content-Type header.
Returns
Throws
|
public
|
#
setUserCredentials( string $username, string $password )
Sets the user credentials used for authentication
Sets the user credentials used for authentication
Parameters
|