[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Passing additional parms
Ok,
We finally got our secure certificates working correctly so I'm back on
this little project.
I have been able to get the first test, basic_auth, to work with Stripe's
API, however the next portion I'm still a little unclear on as to how I
can get it done.
I need to pass several parameters to the API in order to get a charge
amount back.
Here is an example using CURL:
curl https://api.stripe.com/v1/charges \
-u sk_test_BQokikJOvBiI2HlWgH4olfQ2: \
-H "Idempotency-Key: hRduMNX6Mk0cSzsK" \
-d amount=400 \
-d source=tok_15uIMk2eZvKYlo2Cfwjk71uR \
-d currency=usd
So I'm assuming I'll still use the following:
rc = http_setauth(HTTP_AUTH_BASIC : userid : pass);
This will pass the first portion of the example which passes the
credentials, my question is how do I pass the remaining parameters?
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------