mixpanel / mixpanel-php

Other
139 stars 72 forks source link

Cannot use library to import or use groups #58

Open zoe-edwards opened 3 years ago

zoe-edwards commented 3 years ago

I’ve noticed the following endpoints are missing

Any idea if/when these might be added?

Also asked here: https://community.mixpanel.com/sending-data-to-mixpanel-11/import-and-groups-missing-from-php-library-5137

jsilvestre commented 3 years ago

Hi,

Mixpanel support told me to open an issue here, and I've found this one that relates to my need. There is no way to update group profile from the PHP SDK.

In the meantime, the support operator also suggested me the following:

You can create a group producer with the PHP library. The folder I linked has a producer for both events and people. What you can do is copy the people producer, but modify it so it is able to hit our group HTTP API with the correctly formatted data.

Cheers!

mt-gareth commented 3 years ago

63 I just made a pull request that should address this issue

aakarim commented 3 years ago

Hi, any update on this? We've just paid for the add-on and would like to use our PHP integration to create group profiles :)

mcdonagg commented 3 years ago

You can copy the code from the pull request I made, it will give you the functionality.