API for my account

  • busch_collectibles

    42 messages

    France

    Dear Benjamin or Thomas,

    A new question for you from my developer: is it possible to get the category name via id_category ?

    Thanks, best regards,
    Benjamin
  • @thomas
    Administrateur

    348 messages

    Belgique

    Dear Benjamin,

    It is unfortunately not possible. You can nevertheless find the list of categories here: Lien (https)

    Kind regards,
    Thomas
  • busch_collectibles

    42 messages

    France

    Hello Thomas,

    Thanks a lot. I was just going to write another question:

    When we call the WS for the main categories =
    $url = ' Lien (http) ';

    (so with idParent = 0) we get back only the categories in which we have listed items, whereas when we call the subcategories like:
    $url = ' Lien (http) ';

    (here, l'ID category " stamps ") you send us back ALL subcategories and not only the ones in which we have items... is it normal?

    Thanks,
    Benjamin
  • Compte supprimé
    Administrateur
    Compte supprimé

    0 message

    Belgique

    Les informations ne sont plus disponibles car le compte de cet utilisateur est supprimé (Règlement RGPD)
  • busch_collectibles

    42 messages

    France

    Dear Benjamin,

    We are faced to a problem. When we call this method : Lien (https)
    through the navigator, all works fine. But if we call it through a CLI script, I get this fail:

    Curl failed with error: Failed to connect to rest.delcampe.net port 80: Connection refused

    Shall I configurate the call to ask another port than port 80 if I use a script instead of the navigator?

    To remind you, here is the call configuration:


    $url = ' Lien (http) ';
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_POST, true);
    curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($postData) );
    curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
    //curl_setopt($ch, CURLOPT_PORT, 8080);
    $result = curl_exec($ch);
    if($result === false) {
    echo "Curl failed with error: ", curl_error($ch);
    }
    echo $result;
    die();



    Thanks a lot!
    Benjamin
  • Compte supprimé
    Administrateur
    Compte supprimé

    0 message

    Belgique

    Les informations ne sont plus disponibles car le compte de cet utilisateur est supprimé (Règlement RGPD)
  • Compte supprimé
    Administrateur
    Compte supprimé

    0 message

    Belgique

    Les informations ne sont plus disponibles car le compte de cet utilisateur est supprimé (Règlement RGPD)

Rejoignez la communauté des collectionneurs !

S'inscrire Se connecter