Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.46 KB

README.md

File metadata and controls

58 lines (43 loc) · 1.46 KB

Vidal Java SDK

VidalSDK is a Java client starter library for Vidal REST API

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

Written in Java 8

Features

Currently it only implements some Package management features.

  • Get a Package with vidal id
  • Search a Package by name, type, status
  • Search a Package by code (cip, cip13, ...)

If you want more features, you can fork this repo and feel free to modify the code.

Contact

If you want more information, you can mail me.

Simple usage

public static void main(String[] args){
    VidalApi vidalApi = new VidalApi();
    vidalApi.config.app_id = "YOUR VIDAL APP ID";
    vidalApi.config.app_key = "YOUR VIDAL APP KEY";
    try {
        Package dolipraneliquiz  = vidalApi.packageApi.searchByCode("3400927897474");
        List<Package> packages = vidalApi.packageApi.searchByName("dentifrice", "", PackageStatus.NEW, PackageTypes.NON_PHARMACEUTICAL);
    } catch (Exception e){
        System.out.print(e);
    }
}

How to build & deploy

./gradlew build
./gradlew uploadArchives

License

Distributes under MIT license, see LICENSE file.