SdkLinksClient class

Constructors

SdkLinksClient({String? apiBase, Client? httpClient})

Properties

apiBase String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
liveCreate(Map<String, dynamic> link, {required String apiKey}) Future<CreateOutcome>
Live create against POST /sdk/links. Requires an API key.
liveResolve(String shortUrl, {String? apiKey}) Future<Map<String, dynamic>?>
Resolve a created link via GET /sdk/resolve. Returns the resolved link body for live parity verification, or null if unreachable. This is the lenient form the importer uses: any failure degrades to null so a live import still completes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(String shortUrl, {String? apiKey}) Future<ResolveOutcome>
Resolve a short URL via GET /sdk/resolve, surfacing the outcome explicitly so callers can tell a genuine 404 from a transport error.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

previewCreate(Map<String, dynamic> link) CreateOutcome
Dry-run: build the would-create result (incl. the real SDK payload) offline.
shortUrlFor(Map<String, dynamic> link) String
toSdkPayload(Map<String, dynamic> link) Map<String, dynamic>
Serialize our rich internal ULink link definition (see fdl_mapper.dart) into the real POST /sdk/links request body. Anything the ULink schema has no first-class field for (the in-app deep link, custom scheme, app ids, min versions, and all attribution params) rides along in parameters with allowQueryPassthrough so it is forwarded to the app on open — preserving routing intent and attribution end to end.