Skip to content

Instantly share code, notes, and snippets.

@implementation ViewController
//this only needs to be done *ONCE* unless the user chooses to unlink the account at some later time
- (IBAction)btnLinkTouched:(id)sender {
[[BREReceiptManager shared] setupIMAPForProvider:BREReceiptProviderGmail
viewController:self
withCompletion:^(BRSetupIMAPResult result) {
if (result == BRSetupIMAPResultCreatedAppPassword) {
NSLog(@"Account linking successful");

Keybase proof

I hereby claim:

  • I am dpanzer on github.
  • I am dannypanzer (https://keybase.io/dannypanzer) on keybase.
  • I have a public key ASA2r_2ZvoMB7JDYOoYktPdtHfQ0ozIES2fh6-8cNqX51wo

To claim this, I am signing this object:

@dpanzer
dpanzer / BlinkReceiptExample.swift
Created October 23, 2017 15:47
BlinkReceipt Swift Integration
//
// ViewController.swift
// BRSwiftDemo
//
// Created by Danny Panzer on 10/23/17.
// Copyright © 2017 BlinkReceipt. All rights reserved.
//
import UIKit
import BlinkReceipt