processmaker / pmio-sdk-php
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-10-22 11:25:32 UTC
README
This ProcessMaker I/O API provides access to a BPMN 2.0 compliant workflow engine API that is designed to be used as a microservice to support enterprise cloud applications. The current Alpha 1.0 version supports most of the descriptive classes of the BPMN 2.0 specification.
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2017-10-30T20:11:02.634+02:00
- Build package: class io.swagger.codegen.languages.PhpClientCodegen For more information, please visit https://www.processmaker.io/
Requirements
PHP 5.4.0 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/ProcessMaker/pmio-sdk-php.git"
}
],
"require": {
"ProcessMaker/pmio-sdk-php": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/pmio-sdk-php/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit lib/Tests
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: PasswordGrant ProcessMaker\PMIO\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $api_instance = new ProcessMaker\PMIO\Api\Client(); $process_id = "process_id_example"; // string | ID of the process related to the event $event_create_item = new \ProcessMaker\PMIO\Model\EventCreateItem(); // \ProcessMaker\PMIO\Model\EventCreateItem | JSON API response with the event object to add try { $result = $api_instance->addEvent($process_id, $event_create_item); print_r($result); } catch (Exception $e) { echo 'Exception when calling Client->addEvent: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://CHANGEME.api.processmaker.io/api/v1
Documentation For Models
- BpmnFile
- BpmnFileAttributes
- BpmnImportItem
- DataModel
- DataModelAttributes
- DataModelCollection
- DataModelItem
- DataModelItem1
- DataModelItemAttributes
- Error
- ErrorArray
- Event
- EventAttributes
- EventCollection
- EventConnector
- EventConnector1
- EventConnectorAttributes
- EventConnectorCreateItem
- EventConnectorUpdateItem
- EventConnectorsCollection
- EventCreateItem
- EventItem
- EventUpdateItem
- Flow
- FlowAttributes
- FlowCollection
- FlowCreateItem
- FlowItem
- FlowUpdateItem
- Gateway
- GatewayAttributes
- GatewayCollection
- GatewayCreateItem
- GatewayItem
- GatewayUpdateItem
- Group
- GroupAddUsersItem
- GroupAttributes
- GroupCollection
- GroupCreateItem
- GroupIds
- GroupItem
- GroupRemoveUsersItem
- GroupSyncUsersItem
- GroupUpdateItem
- ImportFile
- ImportFileAttributes
- ImportItem
- InlineResponse200
- InputOutput
- InputOutputAttributes
- InputOutputCollection
- InputOutputCreateItem
- InputOutputItem
- InputOutputUpdateItem
- Instance
- InstanceAttributes
- InstanceCollection
- InstanceCreateItem
- InstanceItem
- InstanceUpdateItem
- Meta
- MetaLog
- OauthClient
- OauthClientAttributes
- OauthClientCollection
- OauthClientCreateItem
- OauthClientItem
- OauthClientUpdateItem
- Pagination
- PaginationLinks
- Process
- ProcessAttributes
- ProcessCollection
- ProcessCollection1
- ProcessCreateItem
- ProcessItem
- ProcessUpdateItem
- ResultSuccess
- ResultSuccessMeta
- Task
- TaskAddGroupsItem
- TaskAttributes
- TaskCollection
- TaskConnector
- TaskConnector1
- TaskConnectorAttributes
- TaskConnectorCreateItem
- TaskConnectorUpdateItem
- TaskConnectorsCollection
- TaskCreateItem
- TaskInstance
- TaskInstanceAttributes
- TaskInstanceCollection
- TaskInstanceUpdateItem
- TaskItem
- TaskRemoveGroupsItem
- TaskSyncGroupsItem
- TaskUpdateItem
- Token
- TokenAttributes
- TokenCollection
- TriggerEventCreateItem
- User
- UserAttributes
- UserCollection
- UserCreateItem
- UserIds
- UserItem
- UserUpdateItem
Documentation For Authorization
PasswordGrant
- Type: OAuth
- Flow: password
- Authorization URL: /oauth/access_token
- Scopes: N/A