https://github.com/vinitshahdeo/flames
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.
https://github.com/vinitshahdeo/flames
api flame flames-game game php
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/vinitshahdeo/flames
- Owner: vinitshahdeo
- License: mit
- Created: 2017-02-06T20:42:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T14:41:35.000Z (about 6 years ago)
- Last Synced: 2025-01-24T08:43:41.682Z (5 months ago)
- Topics: api, flame, flames-game, game, php
- Language: CSS
- Homepage: http://vinitshahdeo.com/projects/flames/
- Size: 40 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FLAMES [Game](http://vinitshahdeo.com/projects/flames/)
[](https://github.com/vinitshahdeo/FLAMES/) [](https://github.com/vinitshahdeo/FLAMES/blob/master/LICENSE) [](https://github.com/vinitshahdeo/FLAMES/)
> **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.
[](http://vinitshahdeo.com/projects/flames/) [](http://vinitshahdeo.com/projects/flames/)
> **View [Live Demo](http://vinitshahdeo.com/projects/flames/)**
**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`**## API
[](http://vinitshahdeo.com/flames.php/) [](http://vinitshahdeo.com/flames.php/)
I've built this API for fun. Anyone is welcome to use it!
#### Request
```js
GET http://vinitshahdeo.com/flames.php?name1=Vinit&name2=Sherry
```
#### Response```js
{
"status": 200,
"status_message": "Flames Calculated Successfully!",
"relationship": "Friend"
}
```## Examples
#### This is **jQuery** Example
```js
$.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);
}
});
```#### This is **NodeJS** Example
```js
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);
});
```#### This is **PHP** Example
```php
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;
}?>
```
### Author
**[Vinit Shahdeo](http://www.vinitshahdeo.com/)**
[](https://github.com/vinitshahdeo/FLAMES/blob/master/LICENSE) [](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fvinitshahdeo%2FFLAMES)