Skip to content

LeComptoirDesPharmacies/offisante-java-sdk

Repository files navigation

Offisante Java SDK

This is a Java client library for Offisante API

It's not an official library developed by Offisante, It's a library developed by Le Comptoir des Pharmacies for their own use.

Written in Java 8

Features

  • Overstock : Get overstock products in pharmacy
  • Stock : Get products stock in pharmacy

Contact

More information, you can mail me.

Simple usage

    public static void main(String[] args){
        UserCredentials credentials = new UserCredentials(
                "<user-name>",
                "<password>",
                "<app-key>"
        );

        OffisanteApi api = new OffisanteApi(credentials);

        final Pharmacy p1 = new Pharmacy("2163366");
        final Pharmacy p2 = new Pharmacy("2105791");
        final Product pt1 = new Product("3400935294227");

        OverstockBody overstocks = api.getOverstockApi().getOverstock(Arrays.asList(p1,p2));

        StockBody stocks = api.getStockApi().getStock(Arrays.asList(p1,p2), Arrays.asList(pt1));
    }

License

Distributes under MIT license, see LICENSE file.