pub async fn simple_query( token: &str, endpoint: &str, query_type: QueryType, form_args: Option<Box<[(&str, &str)]>>, ) -> Result<ApiResult, Box<dyn Error>>