Class ApiCalls


  • public class ApiCalls
    extends Object
    Class that represents the Api calls to LinkedIn and OneCareerStop for the "Application Search" feature of JobTracker.
    • Constructor Detail

      • ApiCalls

        public ApiCalls()
    • Method Detail

      • linkedInSelectJob

        public static Jobs linkedInSelectJob​(String url)
                                      throws IOException
        Gets a job object from a link to linkedin
        Parameters:
        url - the link to the linkedin job posting
        Returns:
        a job object of the job posting
        Throws:
        IOException - if the linkedin url cannot be reached
      • linkedInJobSearch

        public static ArrayList<Jobs> linkedInJobSearch​(String keywords)
                                                 throws IOException
        Searches for a list of jobs in linkedin
        Parameters:
        keywords - keywords used for the search
        Returns:
        a list of available jobs
        Throws:
        IOException - if the linked in website cannot be reached
      • careerOneStopSelectJob

        public static Jobs careerOneStopSelectJob​(String url)
                                           throws IOException
        Gets a job object from a link to CareerOneStop
        Parameters:
        url - the link to the CareerOneStop job posting
        Returns:
        a job object of the job posting
        Throws:
        IOException - if the CareerOneStop url cannot be reached
      • careerOneStopJobSearch

        public static ArrayList<Jobs> careerOneStopJobSearch​(String keywords)
                                                      throws IOException
        Searches for a list of jobs in CareerOneStop
        Parameters:
        keywords - keywords used for the search
        Returns:
        a list of available jobs
        Throws:
        IOException - if the CareerOneStop website cannot be reached