Skip to content

Latest commit

 

History

History
264 lines (168 loc) · 6.42 KB

README.rst

File metadata and controls

264 lines (168 loc) · 6.42 KB

Daily Tarot - DivineAPI

Start your FREE Trial to get your API KEY, https://divineapi.com

Travis Docs Maintenance yes SayThanks Paypal

divineapi logo

What is Daily Tarot API?

Astrologers, Tarot Readers or Healers can now integrate astrology-related services to their website or application with Divine API. The data is related to all the important aspect of life that a person wants to know about.

Why Daily Tarot API?

Divine API puts an end to the search of any developer who is seeking for a Daily Tarot API which covers the aspects of life related to love life, career and money by picking a random card from a deck of 78 unique tarot card with images.

Features

  • Daily Tarot API gives you a deck to choose cards from.
  • It is a finely built API that tells you an accurate answer to your question.
  • The chosen card reveals your personality,
  • It also gives you advice in matters related to love finance and much more.
  • You can pick as many cards as you want.

Benefits

  • With Daily Tarot API, you get a clear idea of your concerns.
  • The user can think about a question and can seek near accurate answers and advice.
  • Tarot reading acts as a relief providing tool.

URL

POST: https://divineapi.com/api/1.0/get_daily_tarot.php

Parameters

api_key :
Your API KEY.

Result Example:

{
    "success": 1,
    "message": "Daily Tarot result.",
    "data": {
        "prediction": {
            "card": "card1",
            "category": "reverse",
            "career": "C1",
            "love": "L1",
            "finance": "F1",
            "image": "image_url"
        }
    }
}

Example

cURL

curl -d "api_key=YOUR_API_KEY" -X POST https://divineapi.com/api/1.0/get_daily_tarot.php

Python

import requests
from requests.structures import CaseInsensitiveDict

url = "https://divineapi.com/api/1.0/get_daily_tarot.php"

headers = CaseInsensitiveDict()
headers["Content-Type"] = "application/x-www-form-urlencoded"

data = "api_key=YOUR_API_KEY"


resp = requests.post(url, headers=headers, data=data)

print(resp.status_code)

Javascript

var url = "https://divineapi.com/api/1.0/get_daily_tarot.php";

var xhr = new XMLHttpRequest();
xhr.open("POST", url);

xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");

xhr.onreadystatechange = function () {
   if (xhr.readyState === 4) {
      console.log(xhr.status);
      console.log(xhr.responseText);
   }};

var data = "api_key=YOUR_API_KEY";

xhr.send(data);

PHP

<?php
 $url = "https://divineapi.com/api/1.0/get_daily_tarot.php";

 $curl = curl_init($url);
 curl_setopt($curl, CURLOPT_URL, $url);
 curl_setopt($curl, CURLOPT_POST, true);
 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

 $headers = array(
    "Content-Type: application/x-www-form-urlencoded",
 );
 curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

 $data = "api_key=YOUR_API_KEY";

 curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

 $resp = curl_exec($curl);
 curl_close($curl);
 var_dump($resp);
?>

jQuery Ajax

 $.ajax({
type:'POST',
url:'https://divineapi.com/api/1.0/get_daily_tarot.php',
data: {api_key:'YOUR_API_KEY'},
success:function(data){
console.log(data);
}
 });

ECMAScript (ES6)

const URL = 'https://divineapi.com/api/1.0/get_daily_tarot.php?api_key=YOUR_API_KEY';
fetch(URL, {
    method: 'POST'
})
.then(response => response.json())
.then(json => {
    const date = json.current_date;
    console.log(date);
});

Services

Horoscope Daily Tarot Yes No Tarot Fortune Cookie Coffee Cup

License

2021 Divine API

Licensed under the Apache License, Version 2.0 (the "License");

http://www.apache.org/licenses/LICENSE-2.0

Contact

Questions? Suggestions? Feel free to contact me at admin@divineapi.com

Credits

Source of updates - https://divineapi.com/daily-tarot-api

Please feel free to use and adapt this awesome API.