palantir.api.Optique1API
- class palantir.api.Optique1API
Deals with the API of the partner monitoring optical equipments
- __init__()
Methods
__init__()fillHeaders(headers)getLocation(stationID)Returns a location object from eXail database
getLocations()getResources(uri[, resources])Executes a GET HTTP request to eyeOfSauron API.
makeHeadersAuth([headers])Does nothing because there is no authentication system yet
postResources(uri[, payload])Executes a POST HTTP request to eyeOfSauron API.
request(uri, method[, payload, resources, ...])Executes a POST HTTP request to eyeOfSauron API.
sendAlert(channelType, alertCode, detail[, ...])transformURI(uri)Attributes
ALERT_INFRAALERT_SIAPI_URLEMAIL_CHANNELEXTERNAL_APIINVALID_CREDENTIALSREDMINE_CHANNELRESPONSE_FORMATSERVER_ERROR