Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Latest commit

 

History

History
19 lines (16 loc) · 469 Bytes

index.md

File metadata and controls

19 lines (16 loc) · 469 Bytes

DOCUMENTATION

// Create a POST request.
$request = CurlFactory::newCurlRequest(CurlRequestInterface::CURL_REQUEST_POST);;
$request->getConfiguration()->setHost("http://domain.tld");
$request->setRessourcePath("/resource-path");
$request->addQueryData("id", 1);
$request->addPostData("firstname", "John");
$request->addPostData("lastname", "DOE");
// ...

// Call the POST request.
$response = $request->call();

// Handle the response.
// ...