Makes an API request with automatic endpoint fallback. Tries api.salesforce.com first, then test., dev., and stage.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., dev., and stage.api.salesforce.com on 404.