Changes

Jump to navigation Jump to search
Some more ideas.. thoughts?
Line 8: Line 8:     
Current URL: [http://www.gtaero.net/wiibrew/ gtaero.net/wiibrew] (may possibly change to wiibrew.gtaero.net in the future)
 
Current URL: [http://www.gtaero.net/wiibrew/ gtaero.net/wiibrew] (may possibly change to wiibrew.gtaero.net in the future)
 +
 +
== Personal Ideas ==
 +
 +
=== Possible Example Code? ===
 +
The below is by no means documentation, just ideas.  This whole thing is like a notepad.
 +
 +
==== Store Variables ====
 +
Send: <pre>
 +
POST /setvar.php?app_key=KEY&setvars=VAR1&values=VALUE HTTP/1.1
 +
</pre>
 +
or <pre>
 +
POST /setvar.php?app_key=KEY&setvars=VAR1,VAR2&values=VALUE1,VALUE2&token=, HTTP/1.1
 +
</pre>
 +
Get:
 +
<pre><nowiki>
 +
<?xml version="1.0"?>
 +
<vars>
 +
  <var name="VAR1" value="VALUE1" />
 +
  <var name="VAR2" value="VALUE2" />
 +
  <!-- etc... -->
 +
</vars>
 +
</nowiki></pre>
 +
Reserved Variables (Can Not Set)
 +
* IP
 +
* Score
 +
* LIP
 +
* ID
 +
Note, Display is a variable that should be reserved for their Display Name.
 +
 +
==== Leader Boards ====
 +
Send: <pre>
 +
POST /leaders.php?app_key=KEY&lbid=LEADER_BOARD_ID&vars=VAR1,VAR2 HTTP/1.1
 +
</pre>
 +
 +
<pre><nowiki>
 +
<?xml version="1.0"?>
 +
<leaderboard>
 +
  <place num="1">
 +
    <id>xxxxxxxxxxxx</id>
 +
    <display>Registered Display Name (User's)</display>
 +
    <score>xxx</score>
 +
    <vars /> <!-- Application Requested Variables -->
 +
  </place>
 +
  <place num="2" />
 +
  <!-- etc... -->
 +
</leaderboard>
 +
</nowiki></pre>
 +
 +
==== Matchup ====
 +
Send: <pre>
 +
POST /match.php?app_key=KEY&id=WII_ID&lip=192.168.15.9&min_amt=1&max_amt HTTP/1.1
 +
</pre>
 +
 +
Get: <pre><nowiki>
 +
<?xml version="1.0"?>
 +
<matches amt="3"> <!-- Amount Returned.  If its lower than the Min, an error will be returned -->
 +
  <match>
 +
    <id>xxxxxxxxxxxx</id>
 +
    <display>Registered Display Name (User's)</display>
 +
    <ip>83.92.15.10</ip>
 +
    <lip>192.168.15.10</lip> <!-- If your IP matches theirs, a Local IP should be needed to connect to -->
 +
    <vars /> <!-- Application Requested Variables -->
 +
  </match>
 +
  <match /><!-- etc... -->
 +
</matches>
 +
</nowiki></pre>
 +
or <pre><nowiki>
 +
<?xml version="1.0"?>
 +
<error>
 +
  <code>0</code>
 +
  <human>Could not find enough users.</human>
 +
</error>
 +
</nowiki></pre>
 +
 +
=== Common Variable List ===
 +
Variables that could/should and must (marked by a *) be included:
 +
*app_key (*) - Application's Unique Key
 +
*id - Wii's Messageboard ID
 +
*lip - Wii's Intranet IP Address (Local IP)
 +
*vars - Variables to be returned (if more than one, '''token''' MUST be set)
 +
*token - Seperator for Variables
287

edits

Navigation menu