0
I am integrating an API that imports immovable information using Curl in PHP.
I stopped to import the photos, in the documentation he says:
QUERY PARAMETERS
dimensions
Array of strings
Items Enum: "200x140" "520x280" "1024x1024"
Example: dimensions=200x140,1024x1024
I tried it the way below, but I don’t know how to send the parameter Dimensions=200x140:
$headers = array(
'Content-Type: application/json',
sprintf('Authorization: Bearer %s', $result->access_token)
);
$curl = curl_init("https://www.linkapi.com.br/api/v2/buildings/7034/images");
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$fotos = json_decode(curl_exec($curl));
var_dump($fotos);
$result->access_token is the token received in the previous request
In this above, it returns: Invalid parameters: Dimensions. Check out the documentation and adjustment
But all the documentation says is what I wrote on top.