RestTool
class RestTool (View source)
Class to prepare HTTP request, call the request and decode the response
Constants
VERSION |
|
Methods
array
GetRequestHeaders()
Return HTTP header to send with request
GetRequestType()
Return HTTP request method
array|string
GetRequestData()
Return HTTP request data
string
GetRequestUrl()
Return HTTP request url
__construct(MangoPayApi $root, bool $authRequired = true, bool $clientIdRequired = true)
Constructor
AddRequestHttpHeader($httpHeader)
No description
object
Request(string $urlPath, string $apiVersion, RequestType $requestType, array $requestData = null, string $idempotencyKey = null, Pagination $pagination = null, array $additionalUrlParams = null)
Call request to MangoPay API
object
RequestMultipart(string $urlPath, string $apiVersion, RequestType $requestType, string $file, string $fileName, string $idempotencyKey = null)
Perform a POST/PUT request with a multipart file
Details
array
GetRequestHeaders()
Return HTTP header to send with request
RequestType
GetRequestType()
Return HTTP request method
array|string
GetRequestData()
Return HTTP request data
string
GetRequestUrl()
Return HTTP request url
__construct(MangoPayApi $root, bool $authRequired = true, bool $clientIdRequired = true)
Constructor
AddRequestHttpHeader($httpHeader)
No description
object
Request(string $urlPath, string $apiVersion, RequestType $requestType, array $requestData = null, string $idempotencyKey = null, Pagination $pagination = null, array $additionalUrlParams = null)
Call request to MangoPay API
object
RequestMultipart(string $urlPath, string $apiVersion, RequestType $requestType, string $file, string $fileName, string $idempotencyKey = null)
Perform a POST/PUT request with a multipart file