Suggest fasts days for native
Method | Full Url |
---|---|
POST | https://json.apireports.com/v1/numero_fasts_report |
{
"status_code": 200,
"status": true,
"data": {
"title": "Fast Vrata Timing For You",
"radical_num": 6,
"report": [
"The fast of Lord Venus is observed on Friday for the attainment of wealth, marriage, children and material happiness and it should be started from the first Friday of Shukla Paksha. Get up before sunrise and complete your bath etc. Place an idol or picture of Lord Shukra or Goddess Santoshi Maa.",
"Put all the things like jaggery, gram and water in a big vessel for worship. Worship Lord Shukra or Goddess Santoshi in a systematic way. After this the story of Lord Venus or Goddess Santoshi maa is heard and after that the prasad of jaggery and gram is distributed. At last, sprinkle the water of the big container in house and pour the left-over water in the Tulsi plant. Similarly observe this fast regularly till 11 or 21 Friday."
]
}
}
Params | Data Type | Description | Example |
---|---|---|---|
day | int | Date of Birth | 15 |
month | int | Month of Birth | 9 |
year | int | Year of Birth | 1994 |
name | String | Name | Raju |
# cURL Request Example
curl --location --request POST 'https://json.apireports.com/v1/numero_fasts_report' \
-u '{YourUserID}:{YourApiKey}'\
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data-raw '{
"day": 15,
"month": 9,
"year": 1994,
"name": "Raju"
}'
# END
/* JavaScript Request Example */
var apiEndPoint = "numero_fasts_report";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var language = "en";
var data = {
"day": 15,
"month": 9,
"year": 1994,
"name": "Raju"
};
var url = 'https://json.apireports.com/v1/'+apiEndPoint;
var request = $.ajax({
url: url,
method: "POST",
dataType:'json',
headers: {
"Authorization": "Basic " + btoa(userId+":"+apiKey),
"Accept-Language": "en",
"Content-Type":'application/json'
},
data:JSON.stringify(data)
});
request.then(
function(resp){
console.log(resp);
},
function(err){
console.log(err);
}
);
/* END */
<?php
/* PHP Request Example */
$apiEndPoint = "numero_fasts_report";
$userId = "{YourUserID}";
$apiKey = "{YourApiKey}";
$url = "https://json.apireports.com/v1/";
$data = array(
"day" => 15,
"month" => 9,
"year" => 1994,
"name" => "Raju"
);
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url.$apiEndPoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
$header[] = 'Authorization: Basic '. base64_encode($userId.":".$apiKey);
$header[] = 'Accept-Language: en';
$header[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
$error = curl_error($ch);
$http_code = curl_getinfo($ch ,CURLINFO_HTTP_CODE);
curl_close($ch);
echo $response;
/* END */
# Python Request Example
import requests
import json
apiEndPoint = "numero_fasts_report";
userId = "{YourUserID}";
apiKey = "{YourApiKey}";
url = "https://json.apireports.com/v1/"+apiEndPoint
data = json.dumps({
"day": 15,
"month": 9,
"year": 1994,
"name": "Raju"
})
headers = {
'Accept-Language': 'en',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, auth=(userId, apiKey),data=data)
print(response.text)
# END
/* NodeJS Request Example */
var request = require('request');
var apiEndPoint = "numero_fasts_report";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var url = 'https://json.apireports.com/v1/'+apiEndPoint;
var options = {
'method': 'POST',
'url': url,
'auth': {
'user': userId,
'password': apiKey
},
'headers': {
'Accept-Language': 'en',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"day": 15,
"month": 9,
"year": 1994,
"name": "Raju"
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
/* END */