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
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.
If you want more information, you can mail me.
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);
}
}
./gradlew build
./gradlew uploadArchives
Distributes under MIT license, see LICENSE file.