11

我一直在关注以下教程:http ://wiki.developerforce.com/page/Accessing_Salesforce_Data_From_Ruby

但是,我坚持需要提供密钥的部分:

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_secretand client_id。Salesforce 官方 API 网站上的教程有点过时了。http://www.salesforce.com/us/developer/docs/api_rest/index.htm

而其他一些教程甚至没有提到从哪里得到它。

我已经在http://developer.force.com/创建了一个帐户

甚至创建了一个自定义应用程序,如果我错了,请纠正我。

然后不知道在哪里可以找到我需要的钥匙。

任何解决方法将不胜感激。

4

2 回答 2

24

当您登录 developer.force.com 时,在左侧导航

Build -> 
  Create ->
    Apps

该页面的底部有“连接的应用程序”。单击“新建”以添加您创建的应用程序。您将设置回调 URL、描述等。点击保存后,您将看到您的消费者 ID 和密码。

于 2013-08-27T12:47:52.443 回答
8

自从回答了这个问题后,salesforce 管理面板的结构略有变化。这是您现在访问 trh 答案中提到的屏幕的方式:

在此处输入图像描述

于 2015-01-06T14:03:46.960 回答