简体   繁体   English

从哪里获取Salesforce API for Rails 3.2.11的client_id和client_secret

[英]Where to get client_id and client_secret of Salesforce API for Rails 3.2.11

I've been following a tutorial from: http://wiki.developerforce.com/page/Accessing_Salesforce_Data_From_Ruby 我一直在关注以下教程: http//wiki.developerforce.com/page/Accessing_Salesforce_Data_From_Ruby

But, I'm stuck with the part where you need to supply the keys: 但是,我坚持你需要提供密钥的部分:

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

Where can I get the client_secret and client_id . 我在哪里可以获得client_secretclient_id The tutorial from the official API site of Salesforce is kind of outdated. 来自Salesforce官方API站点的教程有点过时了。 http://www.salesforce.com/us/developer/docs/api_rest/index.htm http://www.salesforce.com/us/developer/docs/api_rest/index.htm

And some other tutorials didn't even mention where to exactly get it. 而其他一些教程甚至没有提到从哪里获得它。

I already created an account in http://developer.force.com/ 我已经在http://developer.force.com/创建了一个帐户

And even created a custom app, correct me if I'm wrong. 甚至创建了一个自定义应用程序,如果我错了,请纠正我。

Then don't know where to find the keys that I need. 然后不知道在哪里找到我需要的钥匙。

Any workarounds will be appreciated. 任何变通办法将不胜感激。

When you log in to developer.force.com, In the left nav 登录developer.force.com时,在左侧导航栏中

Build -> 
  Create ->
    Apps

The bottom of that page has "Connected Apps". 该页面的底部有“已连接的应用”。 Click "New" to add the app you created. 单击“新建”以添加您创建的应用程序。 You'll set your callback URL, description etc. Once you hit save you'll see your consumer id and secret. 您将设置回调URL,描述等。一旦点击保存,您将看到您的消费者ID和秘密。

The structure of the salesforce admin panel has changed slightly since this question was answered. 自问题得到解答以来,salesforce管理面板的结构略有变化。 Here is how you now access the screen referred to in the answer by trh: 以下是您现在如何通过trh访问答案中提到的屏幕:

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM