While running this don’t get any errors, just empty request
value_json<-toJSON("{'index':3}")
request_form<-paste(
'mutation {change_column_value (
board_id: 347384734,
item_id: 34239483,
column_id: "status",
value:',value_json,' ) {
id
}
}',sep = '')
Wrote random ids
Here’s function to process my request, maybe something wrong with it.
GQL <- function(query,
...,
.token = NULL,
.variables = NULL,
.operationName = NULL,
.url = url){
pbody <- list(query = query, variables = .variables, operationName = .operationName)
if(is.null(.token)){
res <- POST(.url, body = pbody, encode="json", ...)
} else {
auth_header <- paste(.token)
res <- POST(.url, body = pbody, encode="json", add_headers(Authorization=auth_header), ...)
}
res <- content(res, as = "parsed", encoding = "UTF-8")
if(!is.null(res$errors)){
warning(toJSON(res$errors))
}
res$data
}
But it worked while quering and creating notifications