An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# FLAMES [Game](http://vinitshahdeo.com/projects/flames/)

[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/vinitshahdeo/FLAMES.svg?logo=github&style=social)](https://github.com/vinitshahdeo/FLAMES/) [![GitHub license](https://img.shields.io/github/license/vinitshahdeo/FLAMES.svg?style=social&logo=github)](https://github.com/vinitshahdeo/FLAMES/blob/master/LICENSE) [![Flames API](https://img.shields.io/badge/php-API-dodgerblue.svg?style=social&logo=php)](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.

[![Flames Game](https://img.shields.io/badge/Flames-Calculator-teal.svg)](http://vinitshahdeo.com/projects/flames/) [![Fun Game](https://img.shields.io/badge/Fun-Game-orange.svg)](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

[![Flames API](https://img.shields.io/badge/Flames-API-dodgerblue.svg?logo=php&logoColor=white)](http://vinitshahdeo.com/flames.php/) [![Fun](https://img.shields.io/badge/Just%20For-Fun-green.svg)](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/)**

[![GitHub license](https://img.shields.io/github/license/vinitshahdeo/FLAMES.svg?style=social&logo=github)](https://github.com/vinitshahdeo/FLAMES/blob/master/LICENSE) [![Twitter](https://img.shields.io/twitter/url/https/github.com/vinitshahdeo/FLAMES.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fvinitshahdeo%2FFLAMES)