# updraftplus/1.8.13/includes/Dropbox/OAuth/Storage/StorageInterface.php

UpdraftPlus: WP Backup &amp; Migration Plugin, version 1.8.13. 31 lines.

- Page: https://pluginprobe.com/plugins/updraftplus/1.8.13/code/includes/Dropbox/OAuth/Storage/StorageInterface.php
- Raw: https://pluginprobe.com/plugins/updraftplus/1.8.13/raw/includes/Dropbox/OAuth/Storage/StorageInterface.php
- Modified: 2013-01-08T18:33:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/updraftplus/1.8.13/code/includes/Dropbox/OAuth/Storage/StorageInterface.php#L10-L20`.

```php
<?php

/**
 * OAuth storage handler interface
 * @author Ben Tadiar <ben@handcraftedbyben.co.uk>
 * @link https://github.com/benthedesigner/dropbox
 * @package Dropbox\OAuth
 * @subpackage Storage
 */

interface Dropbox_StorageInterface
{
    /**
     * Get a token by type
     * @param string $type Token type to retrieve
     */
    public function get($type);
    
    /**
     * Set a token by type
     * @param \stdClass $token Token object to set
     * @param string $type Token type
     */
    public function set($token, $type);
    
    /**
     * Delete tokens for the current session/user
     */
    public function delete();
}

```
