init(compactJWS:)
Creates a new app impression with the provided compact JSON Web Signature (JWS).
Declaration
init(compactJWS: String) async throwsParameters
- compactJWS:
A string that represents a JWS.
Discussion
Create a new AppImpression by providing a compact string representation of the JWS as the following example shows:
do {
let impression = try await AppImpression(compactJWS: compactJWS)
print("Impression advertised item ID: \(impression.advertisedItemID)")
}
catch {
print("Failed to decode impression: \(error)")
}