Hi all, is there some php developer out there? I'm...
# questions
m
Hi all, is there some php developer out there? I'm trying to update a field via guzzle of an user but it doesn't work... I'm writing something like this:
Copy code
$response2 = $this->gclient->post('<https://api-eu.mixpanel.com/engage#profile-set>', [
            'headers' => [
                'authorization' => 'Basic ' . config('services.mixpanel.authorization-token'),
                'content-type' => 'application/x-www-form-urlencoded',
            ],
            'json' => [
                '$token'=> config('services.mixpanel.project-id'),
                '$distinct_id' => 'xxxxxxxxxxxxxxxxxx',
                '$set' => [
                  "user_type"=> "Student"
                ]
            ]  
        ]);
I tried also without #profile-set in the endpoint and also with another url that I used in many other functions: https://eu.mixpanel.com/api/2.0/engage thanks for your time!