Class TaskAntsAppointmentRest


  • public class TaskAntsAppointmentRest
    extends Object
    Class containing all the ANTS REST calls
    • Method Detail

      • addAntsAppointment

        public static String addAntsAppointment​(String addAppointmentUrl,
                                                String token)
                                         throws fr.paris.lutece.util.httpaccess.HttpAccessException
        Add an appointment to the ANTS database through their API, by using a POST method
        Parameters:
        addAppointmentUrl - The URL used to make the REST call
        token - The API key to use in the REST call
        Returns:
        The content of the call's response
        Throws:
        fr.paris.lutece.util.httpaccess.HttpAccessException
      • deleteAntsAppointment

        public static String deleteAntsAppointment​(String deleteAppointmentUrl,
                                                   String token)
                                            throws fr.paris.lutece.util.httpaccess.HttpAccessException
        Delete an appointment from the ANTS database with their API, by using a DELETE method
        Parameters:
        deleteAppointmentUrl - The URL used to make the REST call
        token - The API key to use in the REST call
        Returns:
        The content of the call's response
        Throws:
        fr.paris.lutece.util.httpaccess.HttpAccessException
      • getAntsAppointmentStatus

        public static String getAntsAppointmentStatus​(String getStatusUrl,
                                                      String token)
                                               throws fr.paris.lutece.util.httpaccess.HttpAccessException
        Get the status of 1 or more appointments from the ANTS database through their API, by using a GET method
        Parameters:
        getStatusUrl - The URL used to make the REST call
        token - The API key to use in the REST call
        Returns:
        The content of the call's response
        Throws:
        fr.paris.lutece.util.httpaccess.HttpAccessException