followCustomListResponse method
Endpoint used: POST /list/{id}/follow
Makes the user identified by the sessionToken
follow
a custom list identified by it's listId
and returns a
http response.
Implementation
Future<http.Response> followCustomListResponse(
String sessionToken,
String listId,
) async {
var payload = {
HttpHeaders.authorizationHeader: 'Bearer $sessionToken',
HttpHeaders.contentTypeHeader: 'application/json',
};
var unencodedPath = '/list/$listId/follow';
final uri = 'https://$AUTHORITY$unencodedPath';
return await http.post(Uri.parse(uri), headers: payload);
}