Giter VIP home page Giter VIP logo

chorus-api's Introduction

CHORUS-API / PISTE.GOUV.FR

chorus-api Downloads

Chorus API Package https://piste.gouv.fr

How to install chorus-api

Install

pip install chorus-api

1.0.5

CHANGES

  • Fix base_64_encode_file method in utils
  • Allow pass encoding

1.0.4

CHANGES

Integration de l'état courant

  • Le service ConsulterCR permet de consulter les informations liées au dépôt d'un flux et de récupérer au format PDF le compte rendu de traitement du flux déposé via le portail ou le service exposé DeposerFluxFacture.
Key code description
IN_RECU IN_RECU Le flux a été reçu par Chorus Pro
IN_TRAITE_SE_CPP IN_TRAITE_SE_CPP Le fichier arrivé dans le système d’échange Chorus Pro
IN_EN_ATTENTE_TRAITEMENT_CPP IN_EN_ATTENTE_TRAITEMENT_CPP Le flux est en liste d’attente
IN_EN_COURS_TRAITEMENT_CPP IN_EN_COURS_TRAITEMENT_CPP Le flux est en cours de traitement
IN_INCIDENTE IN_INCIDENTE Flux non traité par le système d’échange, il sera nécessaire de reprendre le flux intégralement.
IN_REJETE IN_REJETE Le flux a été traité mais rejeté car il comporte des anomalies
IN_EN_ATTENTE_RETRAITEMENT_CPP IN_EN_ATTENTE_RETRAITEMENT_CPP Le flux a été bloqué, il attend une reprise manuelle
IN_INTEGRE IN_INTEGRE Le flux a été traité et tout a été intégré dans Chorus Pro.
IN_INTEGRE_PARTIEL IN_INTEGRE_PARTIEL Cela concerne des flux qui sont en rejet partiel, seules les factures correctes sont intégrées.

Usage

from chorusapi.client import ChorusAPI
from exemples.env import CLIENT_ID, CLIENT_SECRET

chorus_api = ChorusAPI(
    client_id=CLIENT_ID,
    client_secret=CLIENT_SECRET
)

token = chorus_api.auth().get_token()
print(token)
from chorusapi.client import ChorusAPI
from exemples.env import CLIENT_ID, CLIENT_SECRET, TECH_USERNAME, TECH_PASSWORD

chorus_api = ChorusAPI(
    client_id=CLIENT_ID,
    client_secret=CLIENT_SECRET,
    tech_username=TECH_USERNAME,
    tech_password=TECH_PASSWORD
)

status_depot = chorus_api.auth().consulter_cr("CPP0XXXXXXXXXXXXX")
print(status_depot.__dict__)

More details in examples folders

chorus-api's People

Contributors

koffiisen avatar

Stargazers

 avatar

Watchers

 avatar

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.