Skip to content

Instantly share code, notes, and snippets.

@DMeganoski
DMeganoski / PydioClient.php
Last active August 16, 2017 16:58
A simple php class intended to demonstrate using the key / secret tokens to authenticate the REST API rather than the user's credentials. Curl or another http client can be used in place of guzzle, if you prefer.
<?php
class Client {
protected $guzzle;
protected $authToken = '';
protected $authPrivate = '';