Giter Site home page Giter Site logo

eternnoir / gbf-bike Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 314 KB

Granblue Fantasy(グランブルーファンタジー) twitter raid id finder.

Home Page: https://github.com/eternnoir/gbf-bike

License: MIT License

Makefile 3.83% Go 96.17%
golang gbf api

gbf-bike's Introduction

GBF Bike

Granblue Fantasy(グランブルーファンタジー) twitter raid id finder.

GBF captains need a bike. gbf-bike helps captain find raid's room id from twitter.

Usage

There are two ways to use gbf-bike. HTTP Get request and web socket.

GET Request

The API will return "RAID" information on twitter in timeout seconds after get request. By default timeout is 5 seconds.

  • GET https://gbf-bike.herokuapp.com/query
// RAIDs in 5 seconds on twitter.
[
  {
    "id": 863054895808561200,
    "level": "100",
    "roomId": "19A97526",
    "mobName": "バアル",
    "url": "https://t.co/mv65GoLxva"
  },
  {
    "id": 863054896903237600,
    "level": "75",
    "roomId": "10EC7A34",
    "mobName": "シュヴァリエ・マグナ",
    "url": "https://t.co/g9jPj10Whl"
  },
  {
    "id": 863054896936796200,
    "level": "75",
    "roomId": "63C1AF94",
    "mobName": "シュヴァリエ・マグナ",
    "url": "https://t.co/qWBsSrbsxc"
  },
  {
    "id": 863054898358665200,
    "level": "60",
    "roomId": "740AD1E2",
    "mobName": "青竜",
    "url": "https://t.co/8KiSakMvrO"
  },
  {
    "id": 863054899428245500,
    "level": "60",
    "roomId": "79302CD4",
    "mobName": "リヴァイアサン・マグナ",
    "url": "https://t.co/x6gYjzky3n"
  }
]
  • Custom timeout: https://gbf-bike.herokuapp.com/query?timeout=1

Web Socket

<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>WebSocket</title>
</head>

<body>
  <p id="output"></p>

  <script>

    var uri = 'wss://gbf-bike.herokuapp.com/ws'

    ws = new WebSocket(uri)

    ws.onopen = function() {
      console.log('Connected')
    }

    ws.onmessage = function(evt) {
      var out = document.getElementById('output');
      out.innerHTML += evt.data + '<br>';
    }

    setInterval(function() {
      ws.send('Hello, Server!');
    }, 1000);
  </script>
</body>

</html>

DIY

gbf-bike's People

Contributors

eternnoir avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

tp6vup54

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.