我一直在关注以下教程:http://wiki.developerforce.com/page/Accessing_Salesforce_Data_From_Ruby
但是,我被困在您需要提供 key 的部分:
host: login.salesforce.com # Use test.salesforce.com for sandbox
client_secret: 1234567890 # This is the Consumer Secret from Salesforce
client_id: somebigidthinghere # This is the Consumer Key from Salesforce
sobject_module: SFDC_Models # See below for details on using modules
debugging: true # Can be useful while developing
username: me@mycompany.com
password: mypasswordplusmysecuritytoken
我在哪里可以获得
client_secret
和 client_id
。来自 Salesforce 官方 API 站点的教程有点过时了。 http://www.salesforce.com/us/developer/docs/api_rest/index.htm其他一些教程甚至没有提到从哪里获得它。
我已经在 http://developer.force.com/ 中创建了一个帐户
甚至创建了一个自定义应用程序,如果我错了,请纠正我。
然后不知道在哪里可以找到我需要的 key 。
任何解决方法将不胜感激。
最佳答案
当您登录 developer.force.com 时,在左侧导航中
Build ->
Create ->
Apps
该页面底部有“连接的应用程序”。单击“新建”以添加您创建的应用程序。您将设置回调 URL、描述等。点击保存后,您将看到您的消费者 ID 和密码。
关于ruby-on-rails - 在哪里获取 Salesforce API for Rails 3.2.11 的 client_id 和 client_secret,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18464598/