plexorganizrnginxsonarrradarrdashboardcouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdallemby
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
442 B
25 lines
442 B
7 years ago
|
---
|
||
|
layout: default
|
||
|
permalink: /adapter/copy/
|
||
|
title: Copy.com Adapter
|
||
|
---
|
||
|
|
||
|
# Copy.com Adapter
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
~~~ bash
|
||
|
composer require league/flysystem-copy
|
||
|
~~~
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
~~~ php
|
||
|
use Barracuda\Copy\API;
|
||
|
use League\Flysystem\Filesystem;
|
||
|
use League\Flysystem\Copy\CopyAdapter;
|
||
|
|
||
|
$client = new API($consumerKey, $consumerSecret, $accessToken, $tokenSecret);
|
||
|
$filesystem = new Filesystem(new CopyAdapter($client, 'optional/path/prefix'));
|
||
|
~~~
|