Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterXuan committed Jul 11, 2018
2 parents 224f943 + aedf5b2 commit 958f6cf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# camunda-rest-client
# camunda-rest-client

```php
# an example to use camunda rest api to complete task

use Camunda\Entity\Request\TaskRequest;
use Camunda\Service\TaskService;

$host = 'http://localhost:8080/engine-rest';
$taskRequest = new TaskRequest();
$taskService = new TaskService($host);

$taskId = '8cd376cc-bf7f-11e7-a6e2-005056c00008';
echo $taskService->complete($taskId, $taskRequest);
```

0 comments on commit 958f6cf

Please sign in to comment.