timopaul/dreamrobot

DreamRobot PHP SDK

v1.0.1 2021-01-27 08:11 UTC

This package is auto-updated.

Last update: 2024-09-27 16:22:43 UTC


README

DreamRobot on Packagist

This library contains a wrapper for the DreamRobot REST API. It is not fully implemented yet, some record types and functions are missing.

Please create a pull request if you have implemented a new API request or create issues for bugs/feature requests.

How to use

<?php

use TimoPaul\DreamRobot\Client\Curl as CurlClient;
use TimoPaul\DreamRobot\Request\ReadPortalAccountsRequest;

// initialize HTTP client
$client = CurlClient::getInstance($user, $pass);

// create request object
$request = $client->createRequest(ReadPortalAccountsRequest::class);

// send HTTP request and get response object
$response = $client->send($request);

Supported Requests

  • GET system/payment_method/
  • GET admin/portal_account/
  • POST token.php
  • POST order/

Installation

Using Composer, just add it to your composer.json by running:

composer require timopaul/dreamrobot

DreamRobot API Documentation

https://www.dreamrobot.de/rest/Doku/doku.php