Title: Dolibarr REST API
Author: Open-DSI
Published: <strong>2018 年 11 月 29 日</strong>
Last modified: 2018 年 11 月 29 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/dolibarr-rest-api/assets/icon-256x256.png?rev=1982421)

# Dolibarr REST API

 作者：[Open-DSI](https://profiles.wordpress.org/opendsi/)

[下载](https://downloads.wordpress.org/plugin/dolibarr-rest-api.zip)

 * [详情](https://cn.wordpress.org/plugins/dolibarr-rest-api/#description)
 * [评价](https://cn.wordpress.org/plugins/dolibarr-rest-api/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/dolibarr-rest-api/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/dolibarr-rest-api/#developers)

 [支持](https://wordpress.org/support/plugin/dolibarr-rest-api/)

## 描述

WordPress plugin helper to connect to the Dolibarr ERP/CRM REST API. Connect to 
Dolibarr through the REST API to send your contacts, WooCommerce products or any
data that will fit in your ERP/CRM.
 This plugin has got no interface. You will 
only get notified in case the Dolibarr API is not correctly configured from the 
WordPress admin “Plugins” screen. This plugin provides a simple tool for developers
to use in their own plugin to connect to the Dolibarr REST API.

## 安装

Installing “Dolibarr REST API” can be done either by searching for “Dolibarr REST
API” via the “Plugins > Add New” screen in your WordPress dashboard, or by using
the following steps:

 1. Download the plugin via WordPress.org
 2. Upload the ZIP file through the ‘Plugins > Add New > Upload’ screen in your WordPress
    dashboard
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

Dolibarr configuration steps:

 1. Activate the REST API for Dolibarr: go to menu _Home > Setup > Modules/Applications_
    and activate the _API/Web services (REST server)_.
 2. Generate and copy the admin user API key: go to menu _Home > Users & groups_, select
    your admin user in the list. Once on the User card, click the _Modify_ button and
    generate and copy the _Key for API_ (see screenshot). Click the _Save_ button.

WordPress configuration steps:
 1. Add the Dolibarr URL and your admin user API 
key to the `wp-config.php` file. Here is an example: `define( 'DOLIBARR_REST_API_URL','
https://my-dolibarr.com/' ); define( 'DOLIBARR_REST_API_USER_KEY', 'M1e57FZ69D0ophaizqTRsNB6lQ3d0EA6');

## 常见问题

  Does this plugin depend on any others?

No, but it depends on a working instance of the [Dolibarr ERP](https://www.dolibarr.org/),
accessible from the network.

  Does this create new database tables?

No. There are no new database tables with this plugin.

  Does this load additional JS or CSS files ?

No. This plugin does not load additional CSS or JS files.

  What does this plugin do?

This plugin is useless on its own. It should be combined with another plugin that
actually interacts with the Dolibarr REST API (agenda, contacts, third parties, 
expense, clients, products, etc.).

  How can I disable the request cache?

GET requests can be cached if explicitely stated (see the controller PHP code). 
Call the page adding `&disable_cache=1` to the URL to disable cache.

## 评价

![](https://secure.gravatar.com/avatar/98afad03bfe9415366dcdcc1072b45fe3487416675f7b32b70a28724fe117ed1?
s=60&d=retro&r=g)

### 󠀁[thank you dolibarr](https://wordpress.org/support/topic/thank-you-dolibarr/)󠁿

 [bookha](https://profiles.wordpress.org/bookha/) 2020 年 8 月 11 日

thank you dolibarr

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/dolibarr-rest-api/reviews/)

## 贡献者及开发者

「Dolibarr REST API」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Open-DSI ](https://profiles.wordpress.org/opendsi/)

[帮助将「Dolibarr REST API」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/dolibarr-rest-api)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/dolibarr-rest-api/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/dolibarr-rest-api/)，或通过[RSS](https://plugins.trac.wordpress.org/log/dolibarr-rest-api/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/dolibarr-rest-api/)。

## 更新日志

#### 1.0.0

 * 2018-11-28
 * Initial release

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**8 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/dolibarr-rest-api/)
 * 标签
 * [template](https://cn.wordpress.org/plugins/tags/template/)
 *  [高级视图](https://cn.wordpress.org/plugins/dolibarr-rest-api/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/dolibarr-rest-api/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/dolibarr-rest-api/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/dolibarr-rest-api/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/dolibarr-rest-api/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/dolibarr-rest-api/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dolibarr-rest-api/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/dolibarr-rest-api/reviews/)

## 贡献者

 *   [ Open-DSI ](https://profiles.wordpress.org/opendsi/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/dolibarr-rest-api/)