‘3b154286-ad8f-4802-b820-98b9f185306b’, ‘tags’ => array(‘Vietnamese’ => ‘YES’) ); $fields = json_encode($fields); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ‘https://onesignal.com/api/v1/players/’.$playerID); curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Content-Type: application/json’)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “PUT”); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); curl_close($ch); $resultData = json_decode($response, true); echo “
resultData";
var_dump($resultData);
echo $resultData;
?>