Using Curl to Access PayPal

can anyone please help me with this?

i know paypal is a secure site, so a code like the below would be needed. but that's where i get stuck.

curl -s -K https://www.paypal.com

I need to be able to curl to paypal and download a list of latest purchases. i know there HAS to be a way to do this. but i cant seem find it. any help?