Overview

Classes

  • Dropbox\AccessToken
  • Dropbox\AccessType
  • Dropbox\AppInfo
  • Dropbox\AuthInfo
  • Dropbox\Client
  • Dropbox\Config
  • Dropbox\Path
  • Dropbox\RequestToken
  • Dropbox\Token
  • Dropbox\WebAuth
  • Dropbox\WriteMode

Exceptions

  • Dropbox\AppInfoLoadException
  • Dropbox\AuthInfoLoadException
  • Dropbox\DeserializeException
  • Dropbox\Exception
  • Dropbox\Exception_BadRequest
  • Dropbox\Exception_BadResponse
  • Dropbox\Exception_BadResponseCode
  • Dropbox\Exception_InvalidAccessToken
  • Dropbox\Exception_NetworkIO
  • Dropbox\Exception_ProtocolError
  • Dropbox\Exception_RetryLater
  • Dropbox\Exception_ServerError
  • Overview
  • Class
  • Tree

Class AuthInfo

This class contains methods to load an AppInfo and AccessToken from a JSON file. This can help simplify simple scripts (such as the example programs that come with the SDK) but is probably not useful in typical Dropbox API apps.

Final
Namespace: Dropbox
Located at Dropbox/AuthInfo.php
Methods summary
public static array
# loadFromJsonFile( string $path )

Loads a JSON file containing authorization information for your app. 'php authorize.php' in the examples directory for details about what this file should look like.

Loads a JSON file containing authorization information for your app. 'php authorize.php' in the examples directory for details about what this file should look like.

Parameters

$path
string
$path Path to a JSON file

Returns

array
A pair of (AppInfo $appInfo, AccessToken $accessToken).

Throws

Dropbox\AuthInfoLoadException
Dropbox SDK for PHP API documentation generated by ApiGen 2.8.0