-1
curl POST -d USER=[email] -d PWD=[password] -d SIGNATURE=[signature] -d METHOD=TransactionSearch -d TRANSACTIONCLASS=RECEIVED -d STARTDATE=2019-05-21T05:38:48Z -d ENDDATE=2019-05-22T05:38:48Z -d VERSION=94  https://api-3t.paypal.com/nvp

curl: (6) Could not resolve host: POST

TIMESTAMP=2019%2d06%2d19T15%3a00%3a11Z&CORRELATIONID=8439e637f94&ACK=Failure&VERSION=94&BUILD=52546130&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error%  

Hey All,

I'm posting about CURL POST requests I have been making to the PayPal NVP/SOAP API. Above I have the curl request itself followed by the response from the prompt below. I have tried this call many different ways such as without the -3t in the domain, concatenating all arguments in the request into a string separated by & as well as various permutations of those. For some context I'm just trying to get an ordered list of all transactions from my company within a given timeframe with minimal calls to the API. This seem(ed)s the best, most efficient way to go about it. Any insights, or pointers at all as to why this doesn't work or about the NVP/SOAP API generally would be greatly appreciated. Alternatively code for successful curl requests made to this API would also be appreciated.

Thank you,

Alex

migration rejected from superuser.com Jun 19 at 20:52

This question came from our site for computer enthusiasts and power users. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by ale, jonsca Jun 19 at 20:52

  • This question does not appear to be about web applications within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    This is a programming question. I don't know why our friends at Super User thought it was on-topic on Web Apps. – ale Jun 19 at 19:44