Xytriza
Xytriza
CDCloudflare Developers
Created by Xytriza on 4/10/2024 in #general-help
cant use api to add a new dns record
ive been trying to create a dns record using the api but its not currently working the data im sending:
(
'type' => 'A',
'name' => 'test.xytriza.com',
'content' => 'serverip',
'proxied' => true,
'ttl' => 600,
)
(
'type' => 'A',
'name' => 'test.xytriza.com',
'content' => 'serverip',
'proxied' => true,
'ttl' => 600,
)
headers:
(
'X-Auth-Email: [email protected]',
'X-Auth-Key: my global api key',
'Content-Type: application/json'
)
(
'X-Auth-Email: [email protected]',
'X-Auth-Key: my global api key',
'Content-Type: application/json'
)
and it still returns auth error, yet ive tried with curl, php curl, and other stuff. cant seem to get it to work
6 replies