InternalThe config object for configuring the Rettiwt instance.
Get the details of an X Job.
The ID of the target job.
The details of the job.
Get the list of suggested X Job locations.
The query to use for searching location suggestions.
The list of suggested locations.
Makes an HTTP request according to the given parameters.
The requested resource.
The args to be used for the request.
The raw Axios response.
import { FetcherService, ResourceType } from 'rettiwt-api';
// Creating a new FetcherService instance using the given 'API_KEY'
const fetcher = new FetcherService({ apiKey: API_KEY });
// Fetching the details of the User with username 'user1'
fetcher.request(ResourceType.USER_DETAILS_BY_USERNAME, { id: 'user1' })
.then(res => {
console.log(res);
})
.catch(err => {
console.log(err);
});
Search for X Jobs using a keyword.
The keyword to be used for searching jobs.
Optionalcount: numberThe number of jobs to fetch.
Optionalcursor: stringThe cursor to the batch of jobs to fetch.
The list of jobs that match the given keyword.
Search for X Jobs using a filter.
The filter to be used for searching jobs.
Optionalcount: numberThe number of jobs to fetch.
Optionalcursor: stringThe cursor to the batch of jobs to fetch.
The list of jobs that match the given filter.
Handles interacting with resources related to X Jobs.