How can I use communications in a data field?

Hey, all.

I have developed a data field and would like to gather some usage statistics, such as sports, watch models etc that regularly use my DF, so I can make improvements focused on those models/users. The thing is I'm trying to gather these info by sending a web request to an API with these data using the communications module only once on the class initialize. No need to be a periodic request. The documentation says this module is not available to DFs, but I have seen some threads saying there is a workaround by using background processes with the DF. My question here is: is it possible and, if so, does anyone have a full working example? I have read the docs, tried some codes from the samples folder (which are not DFs) and tried snippets from other threads, but I always end up with errors such as "no permission for communications module", "cannot find symbol background on type self" etc.

Would appreciate any directions and examples.