Provides transparent API for popular game: CurveFever
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
database
hooks
models
.gitignore
LICENSE
README.md
main.go

README.md

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