Makes an API request with automatic endpoint fallback. Tries api.salesforce.com first, then test.api.salesforce.com on 404, then dev.api.salesforce.com on 404.
The Salesforce connection
The request information (url, method, headers, body, etc.)
Optional
Optional retry/timeout options
The API response
SfError if all endpoints return 404, or immediately on non-404 errors
Makes an API request with automatic endpoint fallback. Tries api.salesforce.com first, then test.api.salesforce.com on 404, then dev.api.salesforce.com on 404.