APPENDIX E: API Documentation
Introduction
If the OPTe Package is purchased, then the Application Program Interface (API) is
available for use. This appendix discusses ways to use the API to allow third party
equipment to remotely access options and settings of the eAMP1-S8-DA. It includes
specific code examples for commonly used requests. The API uses JavaScript Object
Notation (JSON) as its communication language.
Follow the instructions in the First Time IP Assignments section of Chapter 4 to
achieve the required network connection.
API: Presets
1. GET Active Preset
Method: GET
/api/cf/presets/current
Example Response:
{
"serial_number": "",
"model": "eAMP",
"version": 1.3,
"name": "eAMP",
"result": {
"group": {
"Id": 1,
"Name":
""
},
"preset": {
"Data": null,
"Favorite": 0,
"Id": 1,
"Name":
""
}
}
}
eAMP1-S8-DA
Page 85