ShopeeApi

FREEMIUM
Par kangazib | Mise à jour hace 2 meses | Commerce
Popularité

9.1 / 10

Latence

485ms

Niveau de service

96%

Health Check

N/A

Retour à toutes les discussions

not working example

Rapid account: Felipersl 05
felipersl05
hace 9 meses

<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => “https://shopeeapi2.p.rapidapi.com/br/search?q=vestido”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
CURLOPT_HTTPHEADER => [
“X-RapidAPI-Host: shopeeapi2.p.rapidapi.com”,
“X-RapidAPI-Key: xxxxx”
],
]);

response=curlexec(response = curl_exec(curl);
err=curlerror(err = curl_error(curl);

curl_close($curl);

if ($err) {
echo “cURL Error #:” . $err;
} else {
echo $response;
}

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires