I'm looking for the REST API that would retrieve on-demand a large number of records in bulk from the Salesforce accounts and other tables. This is to faciliate integration of Salesforce data with a 3rd party system that requires customer information.
I'd like to use use Bulk API via REST to provide access to data. Choice of development language is C#/.NET and need to build a scheduled process on my end to basically move the data out of Salesforce, massage it, integrate it with other on-premise data, and then into the third-party app.
I've been reading this guide: http://www.salesforce.com/us/developer/docs/api_asynch/api_bulk.pdf but need guidance on how to best access REST BulkAPI (and if there even is a REST version of the Bulk API)
All of the examples in .NET so far use SOAP. All of my REST queries against the endpoints specified in the PDF document have resulted in 400 Bad Request
Appreciate any advice!
EDIT: Here's an example of the code I'm trying to run. I've gotten the session ID from using SOAP api's login method. I've tried different variations of the Authorization and Session headers (with and without username) and I've tried different endpoints and different versions. I don't have a job 123 or a batch 123 defined, but I'd be looking for a 404 and not Bad Request which to me says that I'm doing something COMPLETELY wrong.
var request = WebRequest.Create("https://cs15.salesforce.com/services/async/u/10.0/job/123/batch/123"); request.Method = "GET"; request.ContentType = "application/xml"; //request.Headers.Add("X-SFDC-Session", result.sessionId); request.Headers.Add("Authorization", result.userId + " " + result.sessionId); var response = request.GetResponse();