PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / 1.5.4
JetBackup – Backup, Restore & Migrate v1.5.4
3.1.22.3 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.8.1 1.4.9 1.5.0 1.5.1 1.5.1.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 1.6.10 1.6.11 1.6.12 1.6.13 1.6.15 1.6.5.1 1.6.8.8 1.6.9 1.6.9.1 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7.5 2.0.8.7 2.0.9.11 2.0.9.14 2.0.9.15 2.0.9.6 2.0.9.7 2.0.9.9 3.1.10.7 3.1.11.1 3.1.12.3 3.1.13.4 3.1.14.17 3.1.15.4 3.1.16.1 3.1.17.5 3.1.18.10 3.1.18.8 3.1.18.9 3.1.19.8 3.1.20.3 3.1.21.3 3.1.7.9 3.1.9.2 trunk 1.1.90 1.1.91 1.2.0 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2
backup / com / lib / Dropbox / AuthBase.php
backup / com / lib / Dropbox Last commit date
Exception 5 years ago WebAuthException 5 years ago certs 5 years ago AppInfo.php 5 years ago AppInfoLoadException.php 5 years ago ArrayEntryStore.php 5 years ago AuthBase.php 5 years ago AuthInfo.php 5 years ago AuthInfoLoadException.php 5 years ago Checker.php 5 years ago Client.php 5 years ago Curl.php 5 years ago CurlStreamRelay.php 5 years ago DeserializeException.php 5 years ago DropboxMetadataHeaderCatcher.php 5 years ago Exception.php 5 years ago Host.php 5 years ago HttpResponse.php 5 years ago OAuth1AccessToken.php 5 years ago OAuth1Upgrader.php 5 years ago Path.php 5 years ago RequestUtil.php 5 years ago RootCertificates.php 5 years ago SSLTester.php 5 years ago Security.php 5 years ago StreamReadException.php 5 years ago Util.php 5 years ago ValueStore.php 5 years ago WebAuth.php 5 years ago WebAuthBase.php 5 years ago WebAuthNoRedirect.php 5 years ago WriteMode.php 5 years ago autoload.php 5 years ago strict.php 5 years ago
AuthBase.php
76 lines
1 <?php
2 namespace Dropbox;
3
4 /**
5 * Base class for API authorization-related classes.
6 */
7 class AuthBase
8 {
9 /**
10 * Whatever AppInfo was passed into the constructor.
11 *
12 * @return AppInfo
13 */
14 function getAppInfo() { return $this->appInfo; }
15
16 /** @var AppInfo */
17 protected $appInfo;
18
19 /**
20 * An identifier for the API client, typically of the form "Name/Version".
21 * This is used to set the HTTP <code>User-Agent</code> header when making API requests.
22 * Example: <code>"PhotoEditServer/1.3"</code>
23 *
24 * If you're the author a higher-level library on top of the basic SDK, and the
25 * "Photo Edit" app's server code is using your library to access Dropbox, you should append
26 * your library's name and version to form the full identifier. For example,
27 * if your library is called "File Picker", you might set this field to:
28 * <code>"PhotoEditServer/1.3 FilePicker/0.1-beta"</code>
29 *
30 * The exact format of the <code>User-Agent</code> header is described in
31 * <a href="http://tools.ietf.org/html/rfc2616#section-3.8">section 3.8 of the HTTP specification</a>.
32 *
33 * Note that underlying HTTP client may append other things to the <code>User-Agent</code>, such as
34 * the name of the library being used to actually make the HTTP request (such as cURL).
35 *
36 * @return string
37 */
38 function getClientIdentifier() { return $this->clientIdentifier; }
39
40 /** @var string */
41 protected $clientIdentifier;
42
43 /**
44 * The locale of the user of your application. Some API calls return localized
45 * data and error messages; this "user locale" setting determines which locale
46 * the server should use to localize those strings.
47 *
48 * @return null|string
49 */
50 function getUserLocale() { return $this->userLocale; }
51
52 /** @var string */
53 protected $userLocale;
54
55 /**
56 * Constructor.
57 *
58 * @param AppInfo $appInfo
59 * See {@link getAppInfo()}
60 * @param string $clientIdentifier
61 * See {@link getClientIdentifier()}
62 * @param null|string $userLocale
63 * See {@link getUserLocale()}
64 */
65 function __construct($appInfo, $clientIdentifier, $userLocale = null)
66 {
67 AppInfo::checkArg("appInfo", $appInfo);
68 Client::checkClientIdentifierArg("clientIdentifier", $clientIdentifier);
69 Checker::argStringNonEmptyOrNull("userLocale", $userLocale);
70
71 $this->appInfo = $appInfo;
72 $this->clientIdentifier = $clientIdentifier;
73 $this->userLocale = $userLocale;
74 }
75 }
76