neo-arno / sugar-rest-bundle
SugarCRM REST API 访问的 Symfony2 扩展包
dev-master
2016-07-15 08:21 UTC
Requires
- php: >=5.3.0
- leaseweb/api-caller-bundle: *
This package is not auto-updated.
Last update: 2024-09-24 05:34:14 UTC
README
SugarCRM REST API 访问的 Symfony2 扩展包
##安装
在您的 composer.json 中添加 SugarRESTBundle
{ "require": { "neo-arno/sugar-rest-bundle": "dev-master", ... } }
更新您的应用程序
$ php composer.phar update neo-arno/sugar-rest-bundle
现在该扩展包已安装到您的 vendor/neo-arno/sugar-rest-bundle 目录
在 AppKernel.php 文件中启用该扩展包
$bundles = array( // ... new NeoArno\sugarRESTBundle\sugarRESTBundle(), );
此扩展包使用 rest 客户端扩展包:"leaseweb/api-caller-bundle"。您可以使用您想要的任何 rest API 扩展包;-) 更多信息请参阅文档...
现在只需在 Resources/config/services.yml 中初始化您的 SugarCRM 实例的 REST URL
// ... rest_url: "http://<your-sugarcrm-instance-url>/service/v4_1/rest.php" api_version: "4.1"
api_version 参数为未来使用保留
##文档
在我的网站上获取文档: http://blog.neoarno.com/wp-content/uploads/2013/08/SugarCRMRESTBundle-DevDoc-0.2.pdf