Skip to content

LeComptoirDesPharmacies/vidal-java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Client starter library for Vidal REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages