onoffice / api-client-cli
CLI based client for onOffice API
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- php: ^7.2.0
- ext-json: *
- ext-openssl: *
- symfony/http-client: ^5
Requires (Dev)
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2024-12-24 00:07:58 UTC
README
test-suite for onOffice API
Table of Contents
Requirements
- PHP >= 7.2
- Linux / OSX
Installation
$ git clone $ composer install #dev-mode $ composer install --no-dev #op-mode
ooapi.ini
To avoid unnecessary code configuration, this library provides a configuration file.
In the config/ooapi.ini
the onOffice-API-URL configured.
Command-Line
bin/ooapitest.php
This library can be used via console.
$ php bin/ooapitest.php -f /path-to-file-with-json -t token -s secret
$ php bin/ooapitest.php -j '{json-string}' -t token -s secret
The json-string
MUST be the complete action-tag, example:
{"actionid":"urn:onoffice-de-ns:smart:2.5:smartml:action:read","resourceid":"resource-id","resourcetype":"estate","identifier":"","timestamp":1589567897,"hmac":"88462bce11c5c47fb738dba64a36ba00","parameters":{"data":["Id", "kaufpreis", "lage"]}}
Have a look at the official API documentation for more information.