我已经使用Salesforce提供的PHP工具箱中的phpTookit连接salesforce,但是今天我得到了使用phptoolkit连接到salesforece沙箱的需求,有没有什么办法可以连接。salesforce沙箱连接使用php
2
A
回答
1
连接到生产和连接到沙箱销售人员-ORG之间的唯一区别是:
- 的网址:http://login.salesforce.com(生产)http://test.salesforce.com(沙箱)
- 安全令牌(如果被激活) 在SforceEnterpriseClient对象
2
呼叫对setEndpoint调用的createConnection后,和端点设置为https://test.salesforce.com
端点:
define("USERNAME", "[email protected]");
define("PASSWORD", "yourpassword");
define("SECURITY_TOKEN", "securitytoken");
require_once ('soapclient/SforceEnterpriseClient.php');
$mySforceConnection = new SforceEnterpriseClient();
$mySforceConnection->createConnection("soapclient/enterprise.wsdl.xml");
// this sets the endpoint for a sandbox login:
$mySforceConnection->setEndpoint('https://test.salesforce.com/services/Soap/c/32.0');
$mySforceConnection->login(USERNAME, PASSWORD.SECURITY_TOKEN);
以上代码来自Force.com Toolkit for PHP示例,setEndpoint行是为连接到沙箱而添加的行。
相关问题
- 1. hortonworks沙箱连接垃圾
- 2. salesforce沙箱cURL请求无效grant_type
- 3. 无法建立沙箱连接
- 4. 如何使用salesforce Bulk API登录沙箱
- 5. 如何使用Java客户端API连接到Hortonworks沙箱Hbase
- 6. Salesforce中指定用户的沙箱中缺少调试日志
- 7. Web服务调用salesforce沙箱时出错
- 8. 如何使用沙箱SLF4J
- 9. 当从flex连接到套接字时安全沙箱违规
- 10. 沙箱用户的PHP代码
- 11. 如何对沙箱进行沙箱?
- 12. 使用C#连接到SalesForce批量API
- 13. 连接JIRA和Salesforce
- 14. 登录到salesforce沙箱时发生太多重定向
- 15. 是否可以将报表从Salesforce生产移动到沙箱?
- 16. Salesforce - 如何在环境(沙箱,Live等)之间部署
- 17. Salesforce我的域首先创建的位置?沙箱或生产
- 18. 沙箱NSTask
- 19. CFMessagePort和沙箱
- 20. 新PayPal iOS SDK(beta) - 无法连接到沙箱
- 21. 无法连接到贝宝沙箱核实IPN监听
- 22. 贝宝沙箱IPN网址返回“安全连接失败”
- 23. 无法连接到Docker中的HDP沙箱
- 24. pyhive,SQLAlchemy的无法连接到Hadoop的沙箱
- 25. 在码头集装箱中运行沙箱与沙箱
- 26. php paypal沙箱动态列表
- 27. 使用沙箱帐户测试MFA
- 28. 如何使用PayPal php SDK从沙箱上住
- 29. 帐户的沙箱
- 30. 沙箱不工作