This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 4thefile_api [2010/11/03 03:30] – jay | 4thefile_api [2010/11/08 21:53] (current) – jay | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| The 4theFile API provides RESTful web services for use in integrating 4theFile with other web-based applications. The API has the following features: | The 4theFile API provides RESTful web services for use in integrating 4theFile with other web-based applications. The API has the following features: | ||
| + | |||
| * all communication via HTTP or HTTPS | * all communication via HTTP or HTTPS | ||
| * authentication via HTTP Basic auth | * authentication via HTTP Basic auth | ||
| Line 9: | Line 10: | ||
| * choice of XML or JSON response objects. more representations (e.g. jsonp) may be supported in the future | * choice of XML or JSON response objects. more representations (e.g. jsonp) may be supported in the future | ||
| - | ===== Big Picture ===== | + | The [[4thefile_api_reference]] includes documentation and examples of all API resources. |
| - | | + | ===== Synopsis ===== |
| - | - The 4theFile API allows you to integrate the list of emails submitted to the custom address | + | |
| + | | ||
| + | - The 4theFile API allows you to integrate the list of emails submitted to the Collection | ||
| ===== Example Use Case ===== | ===== Example Use Case ===== | ||
| Line 57: | Line 60: | ||
| Undoubtedly there are uses of the 4theFile API we haven' | Undoubtedly there are uses of the 4theFile API we haven' | ||
| + | ===== Use with AJAX ===== | ||
| + | |||
| + | If your web application' | ||
| + | - your browser probably won't allow it, because you're violating the "same origin" | ||
| + | - you would need to provide access to your API credentials in the client-side javascript, thereby exposing them in the client-side source code | ||
| + | |||
| + | So, you'll need to provide your own ajax callback that in turn calls the 4theFile API from the server, or else provide a web proxy in the same origin as your server as described here http:// | ||
| + | |||
| + | Note: If you've read this far, you may be familiar with JSONP (an alternate solution to cross-domain ajax problems). We'd probably be willing to support JSONP as an alternative response format in the future if there' | ||