Java

Vous pouvez utiliser n'importe quelle librairie HTTP, telles que HTTP-Request, Unirest, Apache's HTTPClient, etc.

Exemple avec la librairie HTTP-Request

Suivez les instructions d'installation sur le site d'HTTP-Request.

Essayez :

// demo class
public class Main {

    // method main(): application entry point
    public static void main (String[] args) {

        // your credentials
        String apiKey = "xxxxxx";
        String login = "test@test.com";
        String password = "pwd";

        // api uri in "sandbox" environment
        String uri = "https://sandbox.clicrdv.com/api/v1/groups/:group_id/fiches.json";
        System.out.println("uri : "+uri);

        // GET request:
        //   - to "https://sandbox.clicrdv.com/api/v1/groups/:group_id/fiches.json?apikey=xxxxxx"
        //   - with basic auth
        //   - print response body to standard output
        HttpRequest.get(uri, true, "apikey", apiKey)
                   .basic(login, password)
                   .receive(System.out);
    }

}