I'm looking at the documentation for the PayPal Curl call... a part of it looks like this:
curl https://api.sandbox.paypal.com/v1/oauth2/token \
-H "Accept: application/json" \
-H "Accept-Language: en_US" \
-u "EOJ2S-Z6OoN_le_KS1d75wsZ6y0SFdVsY9183IvxFyZp:EClusMEUk8e9ihI7ZdVLF5cZ6y0SFdVsY9183IvxFyZp" \
-d "grant_type=client_credentials"
I'm trying to write a paypal interaction to be implemented in an Android app and I'm using Apache Commons and am unclear about how these switches (specifically the -u
) map to the request I create.
I'm guessing that -H
are just standard headers. and -d
is the post/get query param data... but what do I do with -u
For that matter, where does one look for the correlation between the switches listed here http://curl.haxx.se/docs/manpage.html and their equivalent in a manual HTTP request?