Pressroom template verwijderd, website naar root van repo
This commit is contained in:
29
vendor/league/flysystem/docs/adapter/dropbox.md
vendored
Normal file
29
vendor/league/flysystem/docs/adapter/dropbox.md
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
layout: default
|
||||
permalink: /adapter/dropbox/
|
||||
title: Dropbox Adapter
|
||||
---
|
||||
|
||||
# Dropbox Adapter
|
||||
|
||||
## Installation
|
||||
|
||||
~~~ bash
|
||||
composer require spatie/flysystem-dropbox
|
||||
~~~
|
||||
|
||||
## Usage
|
||||
|
||||
A token can be generated in the [App Console](https://www.dropbox.com/developers/apps) for any Dropbox API app. You'll find more info at [the Dropbox Developer Blog](https://blogs.dropbox.com/developers/2014/05/generate-an-access-token-for-your-own-account/).
|
||||
|
||||
~~~ php
|
||||
use League\Flysystem\Filesystem;
|
||||
use Spatie\Dropbox\Client;
|
||||
use Spatie\FlysystemDropbox\DropboxAdapter;
|
||||
|
||||
$client = new Client($authorizationToken);
|
||||
|
||||
$adapter = new DropboxAdapter($client);
|
||||
|
||||
$filesystem = new Filesystem($adapter);
|
||||
~~~
|
||||
Reference in New Issue
Block a user