-
-
Notifications
You must be signed in to change notification settings - Fork 167
PHP client
Akram El Assas edited this page Oct 16, 2024
·
1 revision
Here is a sample PHP client:
<!DOCTYPE html>
<html>
<body>
<center>
<h2>
<?php
$WorkflowId=153;
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://localhost:8000/api/v1/start?w=".$WorkflowId,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"Content-Length: 0",
"Authorization: Basic ".base64_encode("admin".":".md5("wexflow2018"))
),
));
$response = curl_exec($curl);
curl_close($curl);
// $response is actually the executed workflow Instance Id i.e. a GUID
echo $response;
?>
</h2>
</center>
</body>
</html>
Copyright © Akram El Assas. All rights reserved.
- Installing
- Screenshots
- Docker
- Configuration
- Persistence Providers
- Getting Started
- Android App
- Samples
- Local Variables
- Global Variables
- REST Variables
- Functions
- Cron Scheduling
- Logging
-
Built-in Tasks
- File system tasks
- Encryption tasks
- Compression tasks
- Iso tasks
- Speech tasks
- Hashing tasks
- Process tasks
- Network tasks
- XML tasks
- SQL tasks
- WMI tasks
- Image tasks
- Audio and video tasks
- Email tasks
- Workflow tasks
- Social media tasks
- Waitable tasks
- Reporting tasks
- Web tasks
- Script tasks
- JSON and YAML tasks
- Entities tasks
- Flowchart tasks
- Approval tasks
- Notification tasks
- SMS tasks
- Custom Tasks
- Command Line Client
- RESTful API
- Run from Source