Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
static
README
app.yaml
main.py

README

API Description

Requests can be sent with either POST or GET.

# Get /u
  => Request a new user token (or peer ID)
  => Optional arguments:
    'o': Port for other peers to use to connect with (default: 3938)
  => Returns peer ID
    Example:
      <?xml version="1.0"?>
      <eyeunite>
        <peer>
          <pid>peer id here</pid>
          <ip>connecting ip</ip>
          <port>port for other peers to use</ip>
        </peer>
      </eyeunite>

# GET /n
  => Create and join a new lobby
  => Optional arguments:
    'p' : Peer ID (if previously assigned a peer ID)
    'o' : Port for other peers to use to connect with (default: 3938)
  => Returns lobby ID and peer information
    Example:
      <?xml version="1.0"?>
      <eyeunite>
        <lid>lobby id here</lid>
        <peer>
          <pid>peer id here</pid>
          <ip>connecting ip</ip>
          <port>port for other peers to use</ip>
        </peer>
      </eyeunite>

# GET /j
  => Join an existing lobby
  => Required arguments:
    'l' : Lobby ID (generated with a request to '/n')
  => Optional arguments:
    'p' : Peer ID (if previously assigned a peer ID)
    'o' : Port for other peers to use to connect with (default: 3938)
  => Returns lobby ID and peer information (same as '/n')

# GET /l
  => Get peer list for a lobby
  => Required arguments:
    'l' : Lobby ID (generated with a request to '/n')
  => Returns a list of all peers (pid, ip, etc.) connected to the lobby
    Example:
      <?xml version="1.0"?>
      <eyeunite>
        <lid>lobby id here</lid>
        <peer>
          <pid>first peer id</pid>
          <ip>ip of first peer</ip>
          <port>first peer port</port>
        </peer>
        <peer>
          <pid>second peer id</pid>
          <ip>ip of second peer</ip>
          <port>second peer port</port>
        </peer>
        ...
      </eyeunite>
Something went wrong with that request. Please try again.