I have some questions about what to do? I wrote some curl code. I am not sure what to do with the http_postfields. I am pretty sure I might need an array. Let me tell you what I am actually doing. I need a consumer key to use in an api. When I requested the info they gave me an api key and secret. The code I already posted above is their example of doing the request for the consumer key. Here is what I have so far to do the request in php. Will this php request be the same as the json one above.
`<?php
// PHP CURL TO GET CONSUMER KEY
error_reporting(E_ALL);
ini_set('display_errors',1);
ini_set('error_reporting', E_ALL);
ini_set('display_startup_errors',1);
error_reporting(-1);
// Variables
$url = "https://eu.api.ovh.com/auth/?credentialToken=iQ1joJE0OmSPlUAoSw1IvAPWDeaD87ZM64HEDvYq77IKIxr4bIu6fU8OtrPQEeRh";
$apiKey = "sIbir3gYt75JPUnI";
$ch = curl_init($url);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authentication: ' . $apiKey ));
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt ($ch, CURLOPT_POSTFIELDS);
$response = curl_exec($ch);
$result = json_decode($response);
print_r($result);
?>`