"Price Spectre"
|
Public Member Functions | |
setEndpoint ($endpoint) | |
setHeaders ($headers) | |
setRequestBody ($requestBody) | |
get () | |
post () | |
A class that allows calling external webservices and APIs.
get | ( | ) |
Performs a GET call to the external webservice.
post | ( | ) |
Performs a POST call to the external webservice.
setEndpoint | ( | $endpoint | ) |
Sets the endpoint of the external webservice to contact.
endpoint | Specifies the endpoint of the external webservice. This should include any necessary GET parameters. |
setHeaders | ( | $headers | ) |
Sets the headers to include when calling the external webservice.
headers | An array specifying the headers to include when calling the external webservice. |
setRequestBody | ( | $requestBody | ) |
Sets the request body to include when POSTing to the external webservice.
requestBody | The body to POST when making the exterenal webservice call. requestBody can be of type String or XMLDocument |