FLAMES Game
F.L.A.M.E.S is a fun game to find out the status of relationship. Entering two names will give you the outcome of a relationship between them.
View Live Demo
Flames Game is a relationship calculating algorithm famous between the youngsters. So what does FLAMES stands for?
- F -
Friend
- L -
Love
- A -
Affection
- M -
Marriage
- E -
Enemy
- S -
Sister
I've built this API for fun. Anyone is welcome to use it!
GET http://vinitshahdeo.com/flames.php?name1=Vinit&name2=Sherry
{
"status": 200,
"status_message": "Flames Calculated Successfully!",
"relationship": "Friend"
}
$.ajax({
url: 'http://vinitshahdeo.com/flames.php?name1=Vinit&name2=Sherry',
type: 'GET',
success: function(data) {
console.log(data);
},
error: function(data) {
console.log(data);
}
});
var request = require("request");
var options = {
method: 'GET',
url: 'http://vinitshahdeo.com/flames.php',
qs: {
name1: 'Vinit',
name2: 'Sherry'
}
};
request(options, function(error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
<?php
$request = new HttpRequest();
$request->setUrl('http://vinitshahdeo.com/flames.php');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData(array(
'name1' => 'Vinit',
'name2' => 'Sherry'
));
try {
$response = $request->send();
echo $response->getBody();
}
catch (HttpException $ex) {
echo $ex;
}
?>