jobsuche-api-js
Version:
A JavaScript wrapper for the Arbeitsagentur jobs API, allowing developers to easily integrate job search functionality into their applications.
19 lines (18 loc) • 1.02 kB
TypeScript
import { IJobDetailsV2ResponseProps } from "../types/jobDetailsResponseV2Types";
import { IJobDetailsV3ResponseProps } from "../types/jobDetailsResponseV3Types";
/**
* Fetches job details (V2) based on the provided reference number.
* @param {string} refnr from the response of the jobSearch function.
* @typeParam string
* Note: Please add the refnr as it is no need to encode it with Base64.
* @returns {(Promise<JobDetails | null>)} - The job details result.
*/
declare function fetchJobDetailsV2(refnr: string): Promise<IJobDetailsV2ResponseProps | null>;
/**
* Fetches job details (V3) based on the provided reference number.
* Note: No OAuth Access Token Required! Only Add 'X-Api-Key': 'jobboerse-jobsuche' to the header.
* @param {string} refnr - The reference number of the job.
* @returns {Promise<IJobDetailsV3ResponseProps | null>} - The job details.
*/
declare function fetchJobDetailsV3(refnr: string): Promise<IJobDetailsV3ResponseProps | null>;
export { fetchJobDetailsV2, fetchJobDetailsV3 };