29
edits
(fixing list format) |
(fixing bundle and some minor changes) Tag: 2017 source edit |
||
| Line 4: | Line 4: | ||
=Integration of Dolibarr to the Zapier automation platform= | =Integration of Dolibarr to the Zapier automation platform= | ||
<span id="preamble"></span> | <span id="preamble"></span> | ||
| Line 167: | Line 167: | ||
return results; | return results; | ||
});</syntaxhighlight> | });</syntaxhighlight> | ||
You will then have to specify a “Connection Label”, which will be displayed to the user when he connects to his Dolibarr account from Zapier. For example, you can use the first and last name of the user, or the name of the Dolibarr instance. By imagining that the user is called “John Doe” and that the Dolibarr instance is available at the address <code>https://yourdolibarrurl</code>, you can use the following value: | You will then have to specify a “Connection Label”, which will be displayed to the user when he connects to his Dolibarr account from Zapier. For example, you can use the first and last name of the user, or the name of the Dolibarr instance. By imagining that the user is called “John Doe” and that the Dolibarr instance is available at the address <code>https://yourdolibarrurl</code>, you can use the following value: {{bundle.authData.firstname}} {{bundle.authData.lastname}}({{bundle.authData.host}}) which will show <code>John Doe (https://yourdolibarrurl)</code>. | ||
Then click on the “Save & Continue” button to go to the next step. | Then click on the “Save & Continue” button to go to the next step. | ||
| Line 187: | Line 187: | ||
If all went well, you should see your account appear in the list of available accounts. | If all went well, you should see your account appear in the list of available accounts. | ||
Then click on the “Test Authentication” button to check that the connection is working properly. If everything went well, you should see the result of the test query configured in step 3, i.e. the user information returned by the <code>/api/index endpoint. php/users/info</code>: | Then click on the “Test Authentication” button to check that the connection is working properly. If everything went well, you should see the result of the test query configured in step 3, i.e. the user information returned by the <code>/api/index</code> endpoint. <code>php/users/info</code>: | ||
<syntaxhighlight lang="json">{ | <syntaxhighlight lang="json">{ | ||
| Line 471: | Line 471: | ||
This tutorial is licensed under a [http://creativecommons.org/licenses/by-sa/4.0/ Creative Commons Attribution-ShareAlike 4.0 International License]. | This tutorial is licensed under a [http://creativecommons.org/licenses/by-sa/4.0/ Creative Commons Attribution-ShareAlike 4.0 International License]. | ||
edits