0

我正在开发一个 iPhone 应用程序,我想在其中将数据发布到 salesforce 数据库中。我已经从谷歌尝试过,但没有取得任何成功。

你能指导我吗?

提前致谢

4

1 回答 1

1

Salesforce provides an iOS SDK to talk to their API:

https://github.com/forcedotcom/SalesforceMobileSDK-iOS

Here is a tutorial on getting started:

http://wiki.developerforce.com/page/Getting_Started_with_the_Mobile_SDK_for_iOS

You will need to use an Oauth flow to authenticate to the API. This means you show a Login page from Salesforce.com, the user logs in, and then your UIWebView will get a redirect with a sessionId in the URL. You can extract the sessionId and use it to talk to the API for read or write access, depending on the user's permissions. The SDK includes sample code that implements all of that, so you just need to merge that code in with your app.

于 2012-12-03T16:42:53.137 回答