I started working with the rapidshare.com API. I'm just wondering what is the best way to read the response and call the API.
Honestly, I believe the API is everywhere. Some answers are comma separated, which is good. I am having problems responding to account information. This is not separated by a comma, and the fields may not always be in the same order.
Here is an example response: accountid = 123456 type = prem servertime = 1260968445 addtime = 1230841165 validuntil = 1262377165 username = DOWNLOADER directstart = 1 protectfiles = 0 rsantihack = 0 plustrafficmode = 0 mirror = jsconfig = 1 email=take@hike.com lots = 0 fpoints = 12071 ppoints = 10 curfiles = 150 curspace = 800426795 bodkb = 5,000,000 premkbleft = 23394289 ppointrate = 93
I think regex is the way here. Here is my expression that seems to contain all the answers containing the values: (AccountID | type | ServerTime | AddTime | validuntil | Username | directstart | protectfiles | rsantihack | plustrafficmode | Mirrors | jsconfig | mail | earth | fpoints | ppoints | curfiles | curspace | bodkb | premkbleft | ppointrate | refstring | cookies) \ = [\ sh__]]
If the data order should be considered random, then how to determine what value is?
I'm just wondering how everyone works with this.
Thanks,
Conor
source
share