const res = await fetch("https://zoosial.com/profiles", { method: "POST", headers: { Authorization: `Bearer ${process.env.SC_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ name: "Mi marca" }), }); const profile = await res.json();
import os, requests r = requests.post( "https://zoosial.com/profiles", headers={"Authorization": f"Bearer {os.environ['SC_API_KEY']}"}, json={"name": "Mi marca"}, ) profile = r.json()
<?php $ch = curl_init("https://zoosial.com/profiles"); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("SC_API_KEY"), "Content-Type: application/json"], CURLOPT_POSTFIELDS => json_encode(["name" => "Mi marca"]), ]); $profile = json_decode(curl_exec($ch), true);