presentationGetChordChartUpdates method
presentationGetChordChartUpdates
-> /v1/presentation/chord_chart/updates
Requests a chunked data update every time the chord chart changes.
This endpoint can be used to subscribe to changes to the chord chart.
The response is chunked, where each chunk is a simple string "change".
This string will be sent whenever the chord chart changes.
The updated chord chart can be queried by recalling GET /presentation/chord_chart
.
Note that this endpoint will return nothing unless the chunked
parameter is set to true
.
RESPONSE 200:
The request was processed successfully.
content-type: application/json
schema:
{
"type": "string",
"required": [],
"enum": [
"change"
]
}
Implementation
Future<Map<String, dynamic>> presentationGetChordChartUpdates() async {
String url = '/v1/presentation/chordChart/updates';
return await call('get', url, httpAccept: 'application/json');
}