Documentation You are here: start » v » 0.7.0 » advanced » api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v:0.7.0:advanced:api [2011/05/27 00:24] – removing v0.7.1 references and features foxybrettv:0.7.0:advanced:api [2017/04/26 07:02] (current) – external edit 127.0.0.1
Line 177: Line 177:
 You can always use [[http://curl.haxx.se/docs/httpscripting.html|CURL]] to test the API. Here is an example command line CURL request: You can always use [[http://curl.haxx.se/docs/httpscripting.html|CURL]] to test the API. Here is an example command line CURL request:
 <code> <code>
-curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=customer_get&customer_email=john.doe@example.com" https://example.foxycart.tld/api+curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=customer_get&customer_email=john.doe@example.com" https://example.foxycart.com/api
 </code> </code>
 You'd obviously need to insert your own values in that call, but it's provided here for reference. Using CURL can be handy if you just want to get a customer ID quickly, or test to ensure data is being returned as expected. You'd obviously need to insert your own values in that call, but it's provided here for reference. Using CURL can be handy if you just want to get a customer ID quickly, or test to ensure data is being returned as expected.
Line 183: Line 183:
 Here's an example to retrieve a transaction: Here's an example to retrieve a transaction:
 <code> <code>
-curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=transaction_get&transaction_id=1234567890" https://example.foxycart.tld/api+curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=transaction_get&transaction_id=1234567890" https://example.foxycart.com/api
 </code> </code>
 And here's how to refeed the [[:static:redirect:subscription_datafeed|subscription XML datafeed]]: And here's how to refeed the [[:static:redirect:subscription_datafeed|subscription XML datafeed]]:
 <code> <code>
-curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=subscription_datafeed" https://example.foxycart.tld/api+curl -d "api_token=PUT_YOUR_API_KEY_HERE&api_action=subscription_datafeed" https://example.foxycart.com/api
 </code> </code>

Site Tools