Skip to content

DivineAPI/yes-or-no-tarot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Yes Or No Tarot - DivineAPI

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

Travis Docs Maintenance yes SayThanks Paypal

divineapi logo

What is Yes Or No Tarot API?

Divine API allows developers to access and gives them opportunity to integrate astrology services to their website or application & providing them with services like Daily Horoscope, Yes or No Tarot API, Daily Tarot, Fortune Cookie & Coffee Cup Reading.

Why Yes Or No Tarot API?

Divine API has so much to offer. One of the features of divine API is the yes or no Tarot API. Developers can add the yes or no tarot for their application users to decide on something just with a flip of card.

Features

  • The cards created by the Yes or No Tarot API are advanced in appearance with the touch of traditional design.
  • It provides yes or no response with rational description.
  • The responses are on point and authentic.
  • The user interface is extremely attractive.
  • There are a large number of pre-designed cards for everyone.

Benefits

  • It helps your customer get past the question they have been holding on for a while.
  • With Yes or No Tarot API, you can choose to take the tough decision with calculated risk.
  • It has no bugs and is contains engaging content.

URL

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

Parameters

api_key :
Your API KEY.

Result Example:

{
    "success": 1,
    "message": "Yes or No Tarot result.",
    "data": {
        "prediction": {
            "card": "Card1",
            "category": "upright",
            "yes_no": "yes",
            "result": "Result1",
            "image": "image_url"
        }
    }
}

Example

cURL

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

Python

import requests
from requests.structures import CaseInsensitiveDict

url = "https://divineapi.com/api/1.0/get_yes_or_no_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_yes_or_no_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_yes_or_no_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_yes_or_no_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_yes_or_no_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/yes-no-tarot-api

Please feel free to use and adapt this awesome API.