Difference between revisions of "Module Zapier"

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
m
Tag: 2017 source edit
Line 41: Line 41:
 
<syntaxHighlight>
 
<syntaxHighlight>
 
node --version`
 
node --version`
<syntaxHighlight>
+
</syntaxHighlight>
  
 
=== Install the Zapier CLI ===
 
=== Install the Zapier CLI ===
Line 47: Line 47:
 
Next let's install the Zapier CLI tools. The CLI will allow you to build your app, deploy it to the Zapier platform, do local testing, manage users and testers, view remote logs, collaborate with your team, and more:
 
Next let's install the Zapier CLI tools. The CLI will allow you to build your app, deploy it to the Zapier platform, do local testing, manage users and testers, view remote logs, collaborate with your team, and more:
  
<source lang="bash">
+
<syntaxHighlight>
 
cd dev/examples/zapier
 
cd dev/examples/zapier
 
npm install -g zapier-platform-cli
 
npm install -g zapier-platform-cli
 
zapier --version
 
zapier --version
</source>
+
</syntaxHighlight>
  
 
=== Run Zapier Login ===
 
=== Run Zapier Login ===
Line 57: Line 57:
 
Let's configure authentication between your dev environment and the Zapier platform. You'll use the email address and password you use to log in to the Zapier application.
 
Let's configure authentication between your dev environment and the Zapier platform. You'll use the email address and password you use to log in to the Zapier application.
  
  `zapier login`
+
<syntaxHighlight>
 +
zapier login
 +
</syntaxHighlight>
  
 
This command will set up a .zapierrc file in your home directory.
 
This command will set up a .zapierrc file in your home directory.
Line 65: Line 67:
 
In zapier example directory, run:
 
In zapier example directory, run:
  
  `cd dev/examples/zapier`
+
<syntaxHighlight>
 
+
cd dev/examples/zapier
  `npm install`
+
npm install
 +
</syntaxHighlight>
  
 
=== Deploying your App ===
 
=== Deploying your App ===
Line 73: Line 76:
 
Let's deploy it! When you're ready to try your code out on the Zapier platform use the push command. Only you will be able to see the app until you invite testers.
 
Let's deploy it! When you're ready to try your code out on the Zapier platform use the push command. Only you will be able to see the app until you invite testers.
  
  `zapier register`   (the first time, choose name for example "Dolibarr")
+
<syntaxHighlight>
 
+
zapier register  (the first time, choose name for example "Dolibarr")
  `zapier push`
+
zapier push
 +
</syntaxHighlight>
  
 
After a push, the Application, with the name you defined during the register step, is available when creating a Zap.
 
After a push, the Application, with the name you defined during the register step, is available when creating a Zap.

Revision as of 17:37, 21 March 2021

Zapier
Numéro/ID du module
Doc utilisateur du module This page
Doc développeur du module Module Zapier (developer)

Introduction

This module is to manage links between Dolibarr and Zapier.

Installation

This module is included with the Dolibarr distribution, so there is no need to install it.

Configuration

To use this module, you must first enable it using an administrator account, via the menu option "Home - Setup - Modules".

Choose the tab where the module is listed. Then click on "Activate".

The module is now activated.

If a cog icon appears Cog circle.svg on module thumb or at end of the line of the module, click on it to access the setup page specific to the module.


Create a Zapier developper account

At first, you need to have a Zapier developper acoount, create it here [Zapier Platform](https://developer.zapier.com/)

Compile and Deploy the "Zapier App" on Zapier platform

The Zapier App is a small package in javascript you have to deploy on Zapier so Zapier will be able to speak the language of your Dolibarr application.

Install Node.js

An easy option to get set up with Node.js is to visit [1](https://nodejs.org/en/download/) and download the official installer for your OS. If you're installing with a package manager it's even easier.

After installation, confirm that Node.js is ready to use:

node --version`

Install the Zapier CLI

Next let's install the Zapier CLI tools. The CLI will allow you to build your app, deploy it to the Zapier platform, do local testing, manage users and testers, view remote logs, collaborate with your team, and more:

cd dev/examples/zapier
npm install -g zapier-platform-cli
zapier --version

Run Zapier Login

Let's configure authentication between your dev environment and the Zapier platform. You'll use the email address and password you use to log in to the Zapier application.

zapier login

This command will set up a .zapierrc file in your home directory.

Install the Project

In zapier example directory, run:

cd dev/examples/zapier
npm install

Deploying your App

Let's deploy it! When you're ready to try your code out on the Zapier platform use the push command. Only you will be able to see the app until you invite testers.

zapier register   (the first time, choose name for example "Dolibarr")
zapier push

After a push, the Application, with the name you defined during the register step, is available when creating a Zap.

You will find original tutorial here : [2](https://zapier.com/developer/start/introduction)

Usage

Create a Zap

Create a ZAP that use the application you registered. For authentication, you must enter the login / pass of account used by Zapier to call APIs.