venmo / venmo-ios-sdk

Make and accept payments in your iOS app via Venmo
MIT License
178 stars 57 forks source link

Swift support for venmo API calls. #59

Closed sudov closed 9 years ago

sudov commented 9 years ago

Hi there, I'm trying to figure out how to initialize the sdk at the stage where i add: [Venmo startWithAppId:"VENMO_APP_ID" secret:"VENMO_APP_SECRET" name:"VENMO_APP_NAME"]

to the delegate. I think i can convert the rest of the obj-C. I have the import sdk.h thing in a bridging header (had to do this for fb too so..) so would really appreciate help!

Best, Vinay.

sudov commented 9 years ago

Hi there, Ignore the above request. Figured it out - sorry for the bother.

Best, Vinay.

eliperkins commented 9 years ago

Glad you figured things out! Feel free to share your solution here for others as well.

sudov commented 9 years ago

The issue was really me not knowing swift. Here is the swift variant of what you have in the setup guide.

Venmo.startWithAppId("app_id", secret:"your_secret", name:"app_name")