On Jun 15, 2013, at 12:21 PM, Kévin Vavelin <vavelinke...@icloud.com> wrote:
> I want to connect to some API using OAuth2 authentification in my application > and I see that Account Framework got a method for this. So I want to use the > Account framework for connecting to these API and store the account into the > database but I don’t know how I can do it and see no sample code on internet > to learn how to do it. It looks like the Accounts framework only supports Facebook, Twitter and Sina Weibo. It’s possible to create an ACAccountCredential given an OAuth token, but there’s nothing I can see for doing the hard part of OAuth, which is getting the token in the first place. So I don’t think that framework is going to help you. I think there are some open-source libraries for doing OAuth on Mac or iOS; try searching GitHub. —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com