API Calls

All parameters are HTTP GET or HTTP POST

Action Parameters Notes Returns
Get Password Salt mode = 'salt'
user = 'username'
6 character salt
Submit Tip mode = tip
rid = 'ride id'
wait = 'wait time'
To Specify User:
user = 'username'
hash = 'makeAuth hash'
public = 'public api key'
1 if successful
Get Wit mode = wit
pid = 'park id'
land = 'name'
user = 'username'
hash = 'makeAuth hash'
public = 'public api key'
XML
Get Park Listing get = parks XML
Get PID get = pid
name = 'park name'
Integer PID
Get Rides get = rides
pid = 'park id'
XML
Get RID get = rid
pid = 'pid for park located in'
name = 'ride name'
Integer RID
Get UID get = uid
user = 'username'
-1 if user does not exist, positive integer UID if exists
Get API Counter mode = counter
public = 'public API key'
Integer Counter
End API Session mode = end
public = 'public API key'
1 for success
Get park hours and parade times mode = hours
day = 1-31
month = 1-12
year = 2008+
park = MK, EP, MGM, AK, BB, or TL
public = 'public api key'
Premium Feature
Date must be today or in future. Works with Disney parks and water parks.
XML

Create your API Authentication Hash

function makeAuth($username,$pass,$publicAPIkey,$privateAPIkey){ $api = "http://api.tipwit.com/go/?"; $counter = file_get_contents($api."mode=counter&public=$publicAPIkey"); $salt = file_get_contents($api."mode=salt&user=$username"); $userhash = sha1($salt.$pass); $authhash = sha1($userhash.$privateAPIkey.$counter); return $authhash; }

This hash will authenticate your API key as an authorized proxy of the username specified. When you are done with a session, you should use the End API Session Call to increment the counter. This will expire your old Authentication Hash.

©2008