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.

Home Page:http://vinitshahdeo.com/projects/flames/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FLAMES Game

GitHub code size in bytes GitHub license Flames API

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 Fun Game

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

API

Flames API Fun

I've built this API for fun. Anyone is welcome to use it!

Request

GET http://vinitshahdeo.com/flames.php?name1=Vinit&name2=Sherry

Response

{
  "status": 200,
  "status_message": "Flames Calculated Successfully!",
  "relationship": "Friend"
}

Examples

This is jQuery Example

$.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

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

$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;
}

?>

Author

Vinit Shahdeo

GitHub license Twitter

About

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/

License:MIT License


Languages

Language:CSS 56.4%Language:HTML 31.3%Language:PHP 7.4%Language:JavaScript 4.8%