Git Product home page Git Product logo

eu.businessandcode.exactonline's Introduction

eu.businessandcode.exactonline

Deze extensie is een hulpmiddel om gegevens te synchroniseren tussen CiviCRM en Exact Online.

Wat doet deze extensie?

Deze extensie doet in essentie 2 dingen:

  • het handelt de authorisatie en authenticatie af die nodig is om met Exact Online te communiceren: client ID, client secret, refresh tokens...
  • het biedt PHP classes aan om te interageren met Exact Online. Dit gebeurt via een stabiele versie van de Exact Online PHP client, ontwikkeld door Picquer. Zie https://github.com/picqer/exact-php-client

Wat doet deze extensie niet?

De aanmaak of synchronisatie van klanten, leveranciers, verkoopfacturen, kostenplaatsen... moet je zelf programmeren in een aparte extensie. Dat is immers klantspecifiek.

Voorbereiding in Exact Online

Om gegevens te kunnen uitwisselen tussen jouw Exact Online dossier en CiviCRM moet je over een zogenaamde "client id" en "client secret" beschikken.

Meld je aan in Exact Online, en bovenaan in de blauwe balk klik je rechts op Partners > App center

Een nieuw venster wordt geopend.

Klik vervolgens op "Registreer API-sleutels" (rode balk)

Klik dan op "+ Een API sleutel registreren". In het veld URL vul je de link naar je website in (bv. https://mijnwebsite.com).

Voorbereiding in CiviCRM

Surf naar https://WEBSITE/civicrm/exactonline/settings en vul de nodige gegegens in:

  • Exact Online URL (.nl of .be)
  • Client ID
  • Client secret
  • Division (dit is het nummer van je administratie)

Procedure

Klik dan op opslaan. Je zal moeten aanmelden in Exact Online

Achtergrondinformatie

Authorisatieprocedure

Met je client id en client secret, zal CiviCRM je doorverbinden met https://start.exactonline.nl (voor Nederland) of https://start.exactonline.be (voor België). Door aan te melden met je gebruikersnaam en wachtwoord, krijgt CiviCRM een authorisatiecode terug. Deze blijft 1 jaar geldig.

Access token

Om vanuit CiviCRM dingen te doen in Exact Online (bv. een verkoopfactuur aanmaken, de gegevens van een contact synchroniseren...), hebben we eerst een access token nodig.

Die wordt aangevraagd via /api/oauth2/auth, en je client id, client secret en authorisatiecode.

Naast een access token, krijgen we ook een vervaldatum terug en een refresh token.

Voor elke aanroep van de API geven we de access token mee.

Wanneer de access token vervalen is (= na 10 minuten), wordt een nieuw aangevraagd aan de hand van de refresh token. Dit gebeurt automatisch door /api/oauth2/token aan te roepen, met je client id, client secret en refresh code.

Schematische voorstelling

Procedure

eu.businessandcode.exactonline's People

Contributors

alainbenbassat avatar dependabot[bot] avatar jaapjansma avatar

Watchers

 avatar  avatar

Forkers

jaapjansma

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.