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 AuthBase

Base class for API authorization-related classes.

Direct known subclasses

Dropbox\OAuth1Upgrader, Dropbox\WebAuthBase

Indirect known subclasses

Dropbox\WebAuth, Dropbox\WebAuthNoRedirect
Namespace: Dropbox
Located at Dropbox/AuthBase.php
Methods summary
public Dropbox\AppInfo
# getAppInfo( )

Whatever AppInfo was passed into the constructor.

Whatever AppInfo was passed into the constructor.

Returns

Dropbox\AppInfo
public string
# getClientIdentifier( )

An identifier for the API client, typically of the form "Name/Version". This is used to set the HTTP User-Agent header when making API requests. Example: "PhotoEditServer/1.3"

An identifier for the API client, typically of the form "Name/Version". This is used to set the HTTP User-Agent header when making API requests. Example: "PhotoEditServer/1.3"

If you're the author a higher-level library on top of the basic SDK, and the "Photo Edit" app's server code is using your library to access Dropbox, you should append your library's name and version to form the full identifier. For example, if your library is called "File Picker", you might set this field to: "PhotoEditServer/1.3 FilePicker/0.1-beta"

The exact format of the User-Agent header is described in section 3.8 of the HTTP specification.

Note that underlying HTTP client may append other things to the User-Agent, such as the name of the library being used to actually make the HTTP request (such as cURL).

Returns

string
public null|string
# getUserLocale( )

The locale of the user of your application. Some API calls return localized data and error messages; this "user locale" setting determines which locale the server should use to localize those strings.

The locale of the user of your application. Some API calls return localized data and error messages; this "user locale" setting determines which locale the server should use to localize those strings.

Returns

null|string
public
# __construct( Dropbox\AppInfo $appInfo, string $clientIdentifier, null|string $userLocale = null )

Constructor.

Constructor.

Parameters

$appInfo
See Dropbox\AuthBase::getAppInfo()
$clientIdentifier
See Dropbox\AuthBase::getClientIdentifier()
$userLocale
See Dropbox\AuthBase::getUserLocale()
Dropbox SDK for PHP API documentation generated by ApiGen