UNPKG

jobberjs

Version:

3rd party library for retrieving jobs from job boards

33 lines (32 loc) 956 B
import { JobSearchItem } from './search-parser'; /** * Performs Get requests to URLs and returns a promise to a string of data as a response */ export interface HttpFetcher { get(url: string): Promise<{ data: string; }>; } export declare type SearchParameters = { location: string; keywords: string; startingIndex?: number; }; /** * LinkedInAPI performs searches and gets details of a LinkedIn job */ export default class LinkedInAPI { private httpFetcher; constructor(fetcher?: HttpFetcher); getFetcher(): HttpFetcher; /** * Perform a LinkedIn job search * @param params */ getSearchResults(params: SearchParameters): Promise<JobSearchItem[]>; /** * Get description of a specific job * @param jobID string id of LinkedIn job, or JobSearchItem object */ getJobDescription(jobID: string | JobSearchItem): Promise<import("./job-description-parser").JobDescription>; }