Is there a way I can login to Paypal remotely, and parse the Current Balance?
I was thinking of doing something like this:
Step 1) Using cURL, Send Username and Password through the Secure Login Script.
Step 2) Parse the Cookie-String from the Recieved HTTP Headers.
Step 3) Using above Cookie, Send request to the index page of Paypal (Where the balance is shown)
Step 4) Parse the Balance.
I'm just curious if there was any easier/quicker way to do it, and if the above would even work?
The reason I need to reget the cookies every time is because paypal logs you out automatically when the session expires after a while.
Thoughts?