Get Waveform
Overview
Retrieves the waveform for the given call.The function is available as a HTTP GET or HTTP POST request.
Request
Get Waveform:
Get Waveform HTTP GET sample:
Parameters
Detailed description of the API request elements:
URL parameter | Example | Description | Requirements |
---|---|---|---|
action | action=GetWaveform | Name of the HTTP API request. | Mandatory |
apiKey | apiKey=D5D395D8-CD6E-4B92-8068-004E41874367 | API key used to identify the application. | Mandatory |
token | token=AMGRkYRN23daANVnlac0dDUan51nQpOq | Unique identifier for authenticated sessions. After successful authentication, the API sends back a token, which has to be used for each request. | Mandatory if authentication is configured for the given API key. |
cid | cid=4abcc460-1f3b-11e1-9cfe-0016d4a3517c | Defines the internal ID of the call. | Either the callID or either the number parameter is mandatory |
width | width=800 | Defines the waveform's width. | Mandatory |
height | height=80 | Defines the waveform's height. | Mandatory |
isColorDefined | isColorDefined=true | Allows to use unique colors in the waveform. The value can be true or false. if the value is false the waveform will be created in Verba Technologies's style, otherwise the colors can be set with the following parameters:
| Mandatory |
bgColor | bgColor=0xF0F0F0 | Defines the background color of the waveform. The value of the parameter represents a color in the RGB colorspace. The lowest 8 bits set the red channel, the middle 8 bits set the green channel, and the highest 8 bit set the blue channel. | Mandatory if the value of the ColorDefined parameter is true. |
maxColor | maxColor=0xF4F2F2 | Defines the color of the wave. The value of the parameter represents a color in the RGB colorspace. The lowest 8 bits set the red channel, the middle 8 bits set the green channel, and the highest 8 bit set the blue channel. | Mandatory if the value of the ColorDefined parameter is true. |
minColor | minColor=0x232323 | Defines the color of the wave. The value of the parameter represents a color in the RGB colorspace. The lowest 8 bits set the red channel, the middle 8 bits set the green channel, and the highest 8 bit set the blue channel. | Mandatory if the value of the ColorDefined parameter is true. |
transparency | transparency=0x000000 | Defines the transparency of the waveform. | Mandatory if the value of the ColorDefined parameter is true. |
Response
The response contains the waveform in PNG format.