I am also having this issue string(59) "{"error_key":"unauthorized","error_message":"Unauthorized"}" $base = "https://api.cc.email/v3/contacts"; $access_token = $_GET['code']; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $base); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "{\n \"email_address\": {\n \"address\": \"danipper@example.com\",\n \"permission_to_send\": \"implicit\"\n },\n \"first_name\": \"David\",\n \"last_name\": \"Nipper\",\n \"job_title\": \"Musician\",\n \"company_name\": \"Acme Corp.\",\n \"create_source\": \"Account\",\n \"birthday_month\": 11,\n \"birthday_day\": 24,\n \"anniversary\": \"2006-11-15\",\n \"steet_addresses\":{\n \"kind\":\"home\",\n \"street\": \"123 Kashmir Valley Road\",\n \"city\": \"Chicago\",\n \"state\": \"Illinois\",\n \"country\": \"United States\",\n }\n}"); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'cache-control' => 'no-cache', 'authorization' => 'Bearer '.$access_token, 'content-type' => 'application/json', 'accept' => 'application/json' )); $result = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } curl_close($ch); var_dump($result); I need help
... View more