You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -97,7 +114,47 @@ public final class Transloadit {
97
114
/// If left empty, no directory will be made when performing non-file related tasks, such as creating assemblies. However, if you start uploading files,
98
115
/// then TUS will make a directory, whether one you specify or a default one in the documents directory.
/// Initialize Transloadit without a secret, providing a signature generator.
134
+
/// - Parameters:
135
+
/// - apiKey: Transloadit API key.
136
+
/// - sessionConfiguration: A URLSessionConfiguration to use.
137
+
/// - storageDir: A storagedirectory to use. Used by underlying TUSKit mechanism to store files.
138
+
/// If left empty, no directory will be made when performing non-file related tasks, such as creating assemblies. However, if you start uploading files,
139
+
/// then TUS will make a directory, whether one you specify or a default one in the documents directory.
140
+
/// - signatureGenerator: A closure that's invoked to generate the signature for the API request. Implement your own logic to generate a valid
141
+
/// signature. Call the provided completion handler with your signed string or an error as needed.
142
+
///
143
+
/// For example, you can make a request to your backend to generate the signature for you. The closure is passed a string that holds all request params
144
+
/// that need to be signed. See https://transloadit.com/docs/api/authentication/ for more information on signature authentication.
145
+
/// The closure is invoked by the TransloaditAPI when needed.
146
+
///
147
+
/// ** Important:** It's up to the caller to ensure that all codepaths (eventually) call the completion handler. The SDK does not implement any timeouts or fallbacks.
0 commit comments