iOS Email Linking
The BlinkEReceipt SDK supports parsing e-receipts from a growing list of retailers and the following mail providers: Gmail, Outlook, Yahoo, and AOL.
The SDK supports multiple linked accounts simultaneously, with the restriction that at most one Gmail OAuth account and at most one Outlook OAuth account can be linked at any time. Gmail IMAP is the recommended way to link Gmail; Gmail OAuth is deprecated.
note
Both BRScanManager.sharedManager.licenseKey and BRScanManager.sharedManager.prodIntelKey are required for e-receipt parsing to function. Contact support@microblink.com if you do not have a prodIntelKey.
Outlook (OAuth)
- Register a new application in the Azure Portal.
- Add the
Mail.Readpermission under Microsoft Graph. - Set the Client ID and redirect URI via
BREReceiptManager.shared.outlookClientIdandBREReceiptManager.shared.outlookRedirectUri. - Invoke authentication:
BREReceiptManager.shared().beginOAuth(forProvider: .outlook, withViewController: self) { error in
if error == nil {
// Account successfully authenticated
}
}