Jump to content

Access L$ Transaction history from Server


Tarion Korobase
 Share

You are about to reply to a thread that has been inactive for 3742 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Looks good, but have some troubles.

 

First, I had to fix this condition (in 2 places):

if( ! $result = curl_exec($ch))

To:

 if($result != curl_exec($ch))

Second, it is important to give write access to the folder the script is int.

 

and now just gets empty data: 

results.xml:1: parser error : Document is empty

 It might be due to my webspace hosters setup, I will try it locally and then on my own Server.

 Error hndling could be improved, even if I change my password to a wrong one, it just tells me that the file is empty.

Link to comment
Share on other sites

Uh, I can't quote things here, that statement:

if( ! $result = curl_exec($ch))

 is correct. What it does is that it assigns value of the HTTP request to $result variable. And then checks for the response being empty.

Maybe LL changed the structure or URLs of transaction history, I am going to check later today.

Edit:

Also, I believe it would be better to grab the transaction history from the HTML instead of using the XML files, as they get cached and you would have to play with the date ranges to get the latest transaction history log, where with the HTML page, you will always get the latest one.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3742 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...