Accessing the API directly

URL

http://www.gamebanana.com/api?request=ItemType.ItemID.ItemField

PARAMETERS

ItemType

The item's section (currently only Member is supported).

ItemID

The item's ID (must be a number larger than 0).

ItemField

A JSON encoded array of subfunctions to return.

RETURN VALUE

On Success

A JSON encoded string or numeric array of the requested data.

On Error

A JSON encoded array with the key _sError and string value explaining the error.

EXAMPLES

Get member 1382's user title:

  • Request: ?request=Member.1382.["user_title"]
  • Response: ["tom"]

Get member #37's name and user title:

  • Request: ?request=Member.37.["name","user_title"]
  • Response: [["natko","Bananite"]]

Get member 1382's name and whether they're banned or not:

  • Request: ?request=Member.1382.[%22name%22,{%22Ban%28%29%22:[%22bIsBanned%28%29%22]}]
  • Response: [["tom",false]]

Get member's name, whether they have buddies online and their buddy count:

  • Request: ?request=Member.1382.["name",{"Buddies()":[{"Count()":["bHasOnlineBuddies()","nGetBuddiesCount()"]}]}]
  • Response: [["tom",true,160]]

Get member's online buddies, if they're online, their location and if they have Ripe:

  • Request: ?request=Member.1382.[{"Buddies()":[{"List()":["aGetOnlineBuddyRowIds()"]}]},{"OnlineStatus()":["bIsOnline()","sGetLocation()"]},{"Ripe()":["bHasRipe()"]}]
  • Response: [["tom",true,160]]
By tom 2 months ago 1 post 4,567 views

Comments

  • shash7's Levels
    • P2: Drudge
      Points: 2,208
    • E1: Helper
      EF: 12
    • C1: Member
    • A4: Graduate
      Account Age: 3 years

    Awesome sausome mate. Will hack around once I get some time.

    User Title
    Got no fuel, running on pure a

SubFeed