Client class

Uploadcare API client. Provides simple access to {@code File} and {@code Project} resources.

Constructors

Client(String publicKey, String privateKey, {bool simpleAuth = false, Client? httpClient, RequestHelperProvider requestHelperProvider = const DefaultRequestHelperProvider()})
Initializes a client with custom access keys and simple authentication.
Client.demoClient()
Creates a client with demo credentials. Useful for tests and anonymous access.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
final
isSimpleAuth bool
no setter
privateKey String
final
publicKey String
final
requestHelper → RequestHelper
no setter
requestHelperProvider → RequestHelperProvider
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
simpleAuth bool
final

Methods

deleteFile(String? uuid) → void
getFile(String fileId) File
Requests file data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveFile(String? uuid) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited