curveapi

command module
v0.0.0-...-8c983b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2015 License: MIT Imports: 8 Imported by: 0

README

CurveApi.cf

CurveApi was built to provide simple transparent API for CurveFever. And it's used on CurveApi.cf


Requirements

  1. MongoDB up and running
  2. GO package

Installation

  1. Get github.com/julienschmidt/httprouter

go get github.com/julienschmidt/httprouter

  1. Get mgo

go get gopkg.in/mgo.v2

  1. Build

go build


Usage

Fetch player profile by id

http://curveapi.cf/user/793301

Result:

{
  "uid": "793301",
  "name": "maciekmm_tk",
  "premium": true,
  "champion": false,
  "picture": "http://curvefever.com/sites/default/files/pictures/picture-793301-1429279990.png",
  "ranks": {
    "1v1_asia": {
      "rank": 700,
      "bonus": 500,
...

Fetch player profile by name

http://curveapi.cf/username/maciekmm_tk

Result:

{
  "uid": "793301",
  "name": "maciekmm_tk",
  "premium": true,
  "champion": false,
  "picture": "http://curvefever.com/sites/default/files/pictures/picture-793301-1429279990.png",
  "ranks": {
    "1v1_asia": {
      "rank": 700,
      "bonus": 500,
...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL