# iwp-client/trunk/lib/Dropbox2/OAuth/Storage/StorageInterface.php

InfiniteWP Client, version trunk. 31 lines.

- Page: https://pluginprobe.com/plugins/iwp-client/trunk/code/lib/Dropbox2/OAuth/Storage/StorageInterface.php
- Raw: https://pluginprobe.com/plugins/iwp-client/trunk/raw/lib/Dropbox2/OAuth/Storage/StorageInterface.php
- Modified: 2018-04-03T13:05:48+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/iwp-client/trunk/code/lib/Dropbox2/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();
}

```
