Tôi đã ở sau một hướng dẫn từ: http://wiki.developerforce.com/page/Accessing_Salesforce_Data_From_Rubyở đâu để có được client_id và client_secret của Salesforce API cho Rails 3.2.11
Nhưng, tôi đang mắc kẹt với một phần, nơi bạn cần phải cung cấp các phím:
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: [email protected]
password: mypasswordplusmysecuritytoken
Tôi có thể lấy số client_secret
và client_id
ở đâu. Hướng dẫn từ trang API chính thức của Salesforce là loại lỗi thời. http://www.salesforce.com/us/developer/docs/api_rest/index.htm
Và một số hướng dẫn khác thậm chí không đề cập đến nơi để nhận chính xác.
Tôi đã tạo một tài khoản trong http://developer.force.com/
Và thậm chí tạo ra một ứng dụng tùy chỉnh, chính xác cho tôi nếu tôi sai.
Sau đó, không biết phải tìm chìa khóa nào tôi cần.
Bất kỳ cách giải quyết nào cũng sẽ được đánh giá cao.
Xem bài chi tiết của tôi về vấn đề này ở đây http://stackoverflow.com/questions/12794302/salesforce-authentication-failing/29112224 –