Developer Docs
...
API Reference
ESP
Fetch esp records by source wellbore id
code examples curl location globoff 'https //data onxecta com/api/production/well/{sourcewellid}/wellbore/{sourcewellboreid}/tubing/{sourcetubingid}/esp' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //data onxecta com/api/production/well/{sourcewellid}/wellbore/{sourcewellboreid}/tubing/{sourcetubingid}/esp", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));import requests import json url = "https //data onxecta com/api/production/well/{sourcewellid}/wellbore/{sourcewellboreid}/tubing/{sourcetubingid}/esp" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) var options = new restclientoptions("https //data onxecta com") { maxtimeout = 1, }; var client = new restclient(options); var request = new restrequest("/api/production/well/{sourcewellid}/wellbore/{sourcewellboreid}/tubing/{sourcetubingid}/esp", method get); request addheader("accept", "application/json"); request addheader("content type", "application/json"); restresponse response = await client executeasync(request); console writeline(response content);okhttpclient client = new okhttpclient() newbuilder() build(); mediatype mediatype = mediatype parse("application/json"); requestbody body = requestbody create(mediatype, ""); request request = new request builder() url("https //data onxecta com/api/production/well/{sourcewellid}/wellbore/{sourcewellboreid}/tubing/{sourcetubingid}/esp") method("get", body) addheader("accept", "application/json") addheader("content type", "application/json") build(); response response = client newcall(request) execute(); responses // ok \[ { "xid" "", "tubingxid" "", "sourceid" "", "name" "", "installorder" "", "stages" "", "headdegradation" "", "hasgashandler" false, "hasseparator" false, "viscositycorrection" false, "separationefficiency" "", "rundate" "", "pulldate" "" } ]