Overview

Classes

  • Dropbox\AppInfo
  • Dropbox\ArrayEntryStore
  • Dropbox\AuthBase
  • Dropbox\AuthInfo
  • Dropbox\Client
  • Dropbox\OAuth1AccessToken
  • Dropbox\OAuth1Upgrader
  • Dropbox\Path
  • Dropbox\RootCertificates
  • Dropbox\Security
  • Dropbox\SSLTester
  • Dropbox\Util
  • Dropbox\WebAuth
  • Dropbox\WebAuthBase
  • Dropbox\WebAuthNoRedirect
  • Dropbox\WriteMode

Interfaces

  • Dropbox\ValueStore

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_OverQuota
  • Dropbox\Exception_ProtocolError
  • Dropbox\Exception_RetryLater
  • Dropbox\Exception_ServerError
  • Dropbox\HostLoadException
  • Dropbox\StreamReadException
  • Dropbox\WebAuthException_BadRequest
  • Dropbox\WebAuthException_BadState
  • Dropbox\WebAuthException_Csrf
  • Dropbox\WebAuthException_NotApproved
  • Dropbox\WebAuthException_Provider
  • Overview
  • Class

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
Path to a JSON file

Returns

array
A list(string $accessToken, Host $host).

Throws

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