Here is how I set it up now. The strange thing is that it seems to work like 20% of the times. Now I have removed all the custom groups in the API on the playtomic website, and when I run this they groups are not created again and logged. (I did remove my ID from the example)
I just don't seem to be able to get it to work properly, am I doing something wrong?