milosgame: dop_v1_10aaf6e13ec30f93aebf6c002e0d83a61086ac90d9428e290d1e72a009d33114 box-ip: dop_v1_d32680f43b4cecea034248b66c330172a97c6c49f13cecd72e3e03fd00f27eb6 doctl compute domain records create teamtrivia.com --record-data [IP] --record-name [boxXXXX] --record-type A --record-ttl 30 curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer dop_v1_10aaf6e13ec30f93aebf6c002e0d83a61086ac90d9428e290d1e72a009d33114" \ -d '{"type":"A","name":"www","data":"162.10.66.0","priority":null,"port":null,"ttl":30,"weight":null,"flags":null,"tag":null}' \ "https://api.digitalocean.com/v2/domains/milosgame.com/records" "A","name"=>"name","data"=>"162.10.66.0","priority"=>null,"port"=>null,"ttl"=>30,"weight"=>null,"flags"=>null,"tag"=>null); $data_string = json_encode($data); $ch = curl_init('https://api.digitalocean.com/v2/droplets'); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Authorization: Bearer dop_v1_10aaf6e13ec30f93aebf6c002e0d83a61086ac90d9428e290d1e72a009d33114N', 'Content-Type: application/json', 'Content-Length: ' . strlen($data_string)) ); $result = curl_exec($ch); print_r($result); ?>