iDrive API 客户端

dev-master 2017-08-15 21:48 UTC

This package is auto-updated.

Last update: 2024-09-11 14:49:24 UTC


README

Codeship Status for stephanecoinon/idrive

这个 PHP 包是 iDrive (云备份) API 的客户端。

需求

  • PHP 7
  • SimpleXML (ext-simplexml 应该默认安装)

安装

composer require stephanecoinon/idrive:dev-master@dev

用法

<?php

use StephaneCoinon\IDrive\IDrive;

require 'vendor/autoload.php';

$iDrive = IDrive::connect('uid', 'password');

// Get an array of devices backed up by iDrive
$devices = $iDrive->getDevices();

// Get an array of events in a given month
$events = $iDrive->getEvents($year = 2017, $month = 8);

许可证

本软件包是开源软件,受 MIT 许可证 许可。