1 SubscribeKafkaTopic <- function(consumer.base.uri, topic) {
2 response <- POST(url=paste(consumer.base.uri,
3 "subscription", sep="/"),
4 content_type("application/vnd.kafka.v2+json"),
5 body = paste0('{"topics":["',
9 if(response$status_code == 204) {