【问题标题】:Where to get client_id and client_secret of Salesforce API for Rails 3.2.11从哪里获取 Salesforce API for Rails 3.2.11 的 client_id 和 client_secret
【发布时间】:2013-08-30 03:37:38
【问题描述】:

我一直在学习来自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_secretclient_id。 Salesforce 官方 API 网站上的教程有点过时了。 http://www.salesforce.com/us/developer/docs/api_rest/index.htm

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

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

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

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

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

【问题讨论】:

标签: ruby-on-rails salesforce databasedotcom-gem


【解决方案1】:

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

Build -> 
  Create ->
    Apps

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

【讨论】:

  • 谢谢你。救了我很多。
  • 如果您已经创建了它,请点击“编辑”。在下一页上,单击“保存”。您将返回此处的答案所描述的同一页面。
  • 自回答此问题以来,网站的结构略有变化,如果您在访问此处提到的屏幕时遇到任何问题,请参阅下面我的回答
【解决方案2】:

自回答此问题以来,Salesforce 管理面板的结构略有变化。以下是您现在访问 trh 答案中提到的屏幕的方式:

【讨论】:

  • 您将如何从此屏幕获取客户端 ID/秘密?
  • 参加这个聚会已经很晚了,但要回答@JacobHacker,以防其他人访问此页面:您将单击 Connected App Name 链接(不是“编辑”或“管理”)。因此,在示例中,您将单击“网站”。这会将您带到显示密钥和秘密的屏幕。
猜你喜欢
  • 1970-01-01
  • 2021-05-29
  • 1970-01-01
  • 2016-02-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-04-08
  • 1970-01-01
相关资源
最近更新 更多