I have some requests and i want to usen them in libcurl. But i dont know how to do this So whot should i do implemete this in code like "curl.get(dsds) curl.header("", "")"
curl "https://pterodactyl.file.properties/api/client/account" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer apikey' \
-X GET \
curl "https://pterodactyl.file.properties/api/client/account/email" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer apikey' \
-X PUT \
-d '{
"email": "example@xample.com",
"password": "Password"
}'
curl "https://pterodactyl.file.properties/api/client/account/api-keys" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer apikey' \
-X POST \
-d '{
"description": "Restricted IPs",
"allowed_ips": ["127.0.0.1", "192.168.0.1"]
}'
curl "https://pterodactyl.file.properties/api/client/account/api-keys/NWKMYMT2Mrav0Iq2" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer apikey' \
-X DELETE \