UsherAPITask

public enum UsherAPITask

An enum for different API request tasks to Usher Server. These values are used to initialize and configure an UsherAPIRequestConfiguration instance.

  • Renew access tokens with a refresh token

    Declaration

    Swift

    case RenewTokens(refreshToken: String)
  • Register Apple push notification token with server.

    Declaration

    Swift

    case RegisterAPNSToken(token: String)
  • Fetch add physical access keys for a badge.

    Declaration

    Swift

    case KeysForBadge(id: String)
  • Fetch favorite physical access keys for a badge.

    Declaration

    Swift

    case FavoriteKeysForBadge(id: String)
  • Save user’s favorite keys for a badge with a keysJSON string. This task overrites all the favorite keys on the server, so make sure to include all favorite keys when adding or removing a single key.

    Declaration

    Swift

    case SaveFavoriteKeysForBadge(id: String, keysJSON: String)
  • Use a key to access a physical resource.

    Declaration

    Swift

    case UseKey(id: String, resourceId: String?, groupKey: Bool)
  • Report user’s locations associated to a badge to the server.

    Declaration

    Swift

    case ReportLocation(locations: [CLLocation], badgeId: String)
  • Online desktop pairing initialization

    Declaration

    Swift

    case PairingInitializationOnline(params: DesktopPairingParams)
  • Fetch desktop credentials submitted at pairing step on the desktop

    Declaration

    Swift

    case PairingCredentialFetch(params: DesktopPairingCredentialFetchParams)
  • Submit desktop credentials for unlocking

    Declaration

    Swift

    case UnlockCredentialSubmit(params: DesktopUnlockCredentialSubmitParams)
  • Sync desktop pairing info to server

    Declaration

    Swift

    case SyncDesktopConfig(info: DesktopPairingInfo)
  • Report desktop related event.

    Declaration

    Swift

    case ReportDesktopEvent(event: DesktopReportEvent)