PARAMETERS:
key - Specifies the security key needed to upload (downloading doesn't need this).
day - used to specify the day of the month (month and year aren't needed). This should reference the day the last 7 days usage applies to, you can contact me for any necessary algorithms to aquire this if you wish.
dt - similar to the dt parameter used by GNUM, the month and year parts will be ignored.
user_id - A unique id for the user the data belongs to, usually a user hash value calulated from the username but technically could be any form of number.
plan_id - A number representing the plan the user is on.
1: 1500 Unlimited
2: 512 Unlimited
3: 256 Unlimited
4: Gamespace Unlimited
last_7 - The last 7 days downloads for the user, this can be calculated in several different ways but I would recommend using the value from the usage page as it is the most accurate.
status_id - The users shaping status.
1: GREEN
2: AMBER
3: RED
version - An identifier for the usage meter that uploaded the stats (not all usage meters use this site but these are the numbers that would be used).
-1: NUMNUT
0: JANUM
1: NUUM
output - The version of the output format, will default to 1 (can be omitted).
1: matches GNUM as much as possible (almost identical).
all - Specifies that all the data should be displayed irrespective of the date the data applies to. Doesn't matter what the value is, will be true when value isn't empty.
LIMITATIONS:
- The usage for a user will only be updated when the last 7 days usage for a given day is greater than the value that already exists (or if there is no data for that user on that day). By overriding pre-existing data that is less than the current data, corrupted data (if there ever is any) will be corrected to a degree.
- File locking is implemented. This prevents problems with simultaneous access but if a lot of users try to upload at the same time it will cause it to slow down (but not by much).
- There will be a history limit before the data is deleted. This will be slightly less than a month.
- If the day entered hasn't actually arrived yet, it will assume you meant the same day last month.