Releases: Thiru-Malai/current-affairs-api
Releases · Thiru-Malai/current-affairs-api
v0.0.2
v0.0.1
Features:
- Today's Current Affairs
GET: /today
const axios = require('axios');
const options = {
method: 'GET',
url: 'https://current-affairs-of-india.p.rapidapi.com/today',
headers: {
'X-RapidAPI-Key': '9bff012c16msh5470f9994d044c2p1bd648jsn0748463ea5fd',
'X-RapidAPI-Host': 'current-affairs-of-india.p.rapidapi.com'
}
};
try {
const response = await axios.request(options);
console.log(response.data);
} catch (error) {
console.error(error);
}
- Quiz For The Day
GET: /today-quiz
const axios = require('axios');
const options = {
method: 'GET',
url: 'https://current-affairs-of-india.p.rapidapi.com/today-quiz',
headers: {
'X-RapidAPI-Key': '9bff012c16msh5470f9994d044c2p1bd648jsn0748463ea5fd',
'X-RapidAPI-Host': 'current-affairs-of-india.p.rapidapi.com'
}
};
try {
const response = await axios.request(options);
console.log(response.data);
} catch (error) {
console.error(error);
}