Skip to content

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.

License

Notifications You must be signed in to change notification settings

vinitshahdeo/FLAMES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published