delete notifications just inactivates, not deletes

  • prophila

    11 messages

    Allemagne

    Hi,

    why does delete notification just inactivate the notification but not delete it? Now we get messages, that max number of notification has been reached. Please delete inacitve notifications.

    And make it possible for the users also to really delete.

    Until now we still were not able to get a working Seller_Item_Close_Sold-notification:

    Our 5 attempts to send you a Curl_Seller_Item_Close_Sold notification type to your URL (...) were not successful. This automatic email is intended to notify that this URL has been deactivated.

    We do not really understand, why... We tried this and it worked for us, why does it not work for delcampe?


    Best regards

    Oliver
  • uk_sampoma

    4 messages

    Allemagne

    Hi,

    why does delete notification just inactivate the notification but not delete it? Now we get messages, that max number of notification has been reached. Please delete inacitve notifications.

    And make it possible for the users also to really delete.

    Until now we still were not able to get a working Seller_Item_Close_Sold-notification:

    Our 5 attempts to send you a Curl_Seller_Item_Close_Sold notification type to your URL (...) were not successful. This automatic email is intended to notify that this URL has been deactivated.

    We do not really understand, why... We tried this and it worked for us, why does it not work for delcampe?


    Best regards

    Oliver
    • Posté le 24 sept. 2020 à 03:57
    • #1191601
    Hi,

    please also delete our inactive notifications. Thank you!

    Best regards
    Andreas
  • @thomas
    Administrateur

    348 messages

    Belgique

    Hi,

    why does delete notification just inactivate the notification but not delete it? Now we get messages, that max number of notification has been reached. Please delete inacitve notifications.

    And make it possible for the users also to really delete.

    Until now we still were not able to get a working Seller_Item_Close_Sold-notification:

    Our 5 attempts to send you a Curl_Seller_Item_Close_Sold notification type to your URL (...) were not successful. This automatic email is intended to notify that this URL has been deactivated.

    We do not really understand, why... We tried this and it worked for us, why does it not work for delcampe?


    Best regards

    Oliver
    • Posté le 24 sept. 2020 à 03:57
    • #1191601
    Hello Oliver,

    I deleted your inactive notifications. It is currently not possible to delete a notification with the API.

    I invite you to fill in the suggestion form here: Lien (https)
    The more suggestions there are, the more likely it is that they will be realized. I'll do my best to make it happen.

    I understand you tried to send us curl notifications to notify us that an item has been sold? If that's right, just call this resource: Lien (https)

    Best Regards,
    --
    Thomas
    Delcampe Team
  • @thomas
    Administrateur

    348 messages

    Belgique

    Hi,

    please also delete our inactive notifications. Thank you!

    Best regards
    Andreas
    • Posté le 24 sept. 2020 à 04:51
    • #1191628
    Hello Andreas,

    I also deleted your inactive notifications.

    Best Regards,
    --
    Thomas
    Delcampe Team
  • prophila

    11 messages

    Allemagne

    Hello Oliver,

    I deleted your inactive notifications. It is currently not possible to delete a notification with the API.

    I invite you to fill in the suggestion form here: Lien (https)
    The more suggestions there are, the more likely it is that they will be realized. I'll do my best to make it happen.

    I understand you tried to send us curl notifications to notify us that an item has been sold? If that's right, just call this resource: Lien (https)

    Best Regards,
    --
    Thomas
    Delcampe Team
    • Posté le 25 sept. 2020 à 04:13
    • #1192006
    Hi Thomas,

    we tried to set up a Seller_Item_Close_Sold-notification in order to get the selling information in our system so that we can automatically import an order for it. But I do only have experience in using REST with curl and now I think I have to build a REST-webservice. I tried to but I always get this message:

    "Our 5 attempts to send you a Curl_Seller_Item_Close_Sold notification type to your URL ( Lien (http) were not successful. This automatic email is intended to notify that this URL has been deactivated. "

    I do not know what is wrong. I tested my php-script by sending such a XML via curl and it worked. I simply get nothing via "$_POST['delcampeNotification']", just "file_get_contents('php://input')" is working...

    Can you help me with some kind of example script? Thank you for deleting the inactive notifications... I already made the suggestion...

    Best regards

    Oliver
  • @thomas
    Administrateur

    348 messages

    Belgique

    Hi Thomas,

    we tried to set up a Seller_Item_Close_Sold-notification in order to get the selling information in our system so that we can automatically import an order for it. But I do only have experience in using REST with curl and now I think I have to build a REST-webservice. I tried to but I always get this message:

    "Our 5 attempts to send you a Curl_Seller_Item_Close_Sold notification type to your URL ( Lien (http) were not successful. This automatic email is intended to notify that this URL has been deactivated. "

    I do not know what is wrong. I tested my php-script by sending such a XML via curl and it worked. I simply get nothing via "$_POST['delcampeNotification']", just "file_get_contents('php://input')" is working...

    Can you help me with some kind of example script? Thank you for deleting the inactive notifications... I already made the suggestion...

    Best regards

    Oliver
    • Posté le 25 sept. 2020 à 04:55
    • #1192045
    You can use the PHP class SimpleXMLElement (ext-simplexml in composer): Lien (https)

    Small example to retrieve the type of notification and the personal reference of your item:

    ***
    $xmlString = file_get_contents('php://input');

    $xml = new \SimpleXMLElement($xmlString);

    // get Notification_Type
    $notificationType = $xml->Notification_Type;

    // get personal_reference
    $personalReference = $xml->Notification_Data->personal_reference;

    ***

    I hope it's clear enough, otherwise tell me.
    --
    Thomas
    Delcampe Team
  • prophila

    11 messages

    Allemagne

    You can use the PHP class SimpleXMLElement (ext-simplexml in composer): Lien (https)

    Small example to retrieve the type of notification and the personal reference of your item:

    ***
    $xmlString = file_get_contents('php://input');

    $xml = new \SimpleXMLElement($xmlString);

    // get Notification_Type
    $notificationType = $xml->Notification_Type;

    // get personal_reference
    $personalReference = $xml->Notification_Data->personal_reference;

    ***

    I hope it's clear enough, otherwise tell me.
    --
    Thomas
    Delcampe Team
    • Posté le 25 sept. 2020 à 05:47
    • #1192072
    Hi Thomas,

    yes, this is the way I do it already and it works when I test it. But I was not able to get anything from your Delcampe Notification until now! I only get these email "[D*] API - Disabling one of your notification destination URLs" / Email_Error_LimitReached from Delcampe.

    I do not know what is wrong...

    My test ([...] is replaced by correct original data which I only wiped out for this reply):

    $xmldata = '<?xml version="1.0" encoding="UTF-8"?>
    <Delcampe_Notification>
    <Notification_Token>[...]</Notification_Token>
    <Notification_Datetime>2020-09-23T10:50:34+00:00</Notification_Datetime>
    <Notification_Type>Seller_Item_Close_Sold</Notification_Type>
    <Notification_Data>
    <id_item>593738323</id_item>
    <seller_nickname>[...]a</seller_nickname>
    <item_title>[...]</item_title>
    <best_bid>6.50</best_bid>
    <best_bid_currency>EUR</best_bid_currency>
    <qty>1</qty>
    <available_quantity>0</available_quantity>
    <personal_reference>[...]</personal_reference>
    <url_to_item>[...]</url_to_item>
    <bids_qty>0</bids_qty>
    <visits_counter>7</visits_counter>
    <buyer_id>9999</buyer_id>
    <buyer_nickname>[...]</buyer_nickname>
    <buyer_email>[...]</buyer_email>
    <buyer_spoken_languages>Englisch (Vereinigtes Königreich)</buyer_spoken_languages>
    <buyer_language>Englisch (Vereinigtes Königreich)</buyer_language>
    <buyer_firstname>[...]</buyer_firstname>
    <buyer_surname>[...]</buyer_surname>
    <buyer_address>[...] </buyer_address>
    <buyer_zipcode>[...]</buyer_zipcode>
    <buyer_city>[...]</buyer_city>
    <buyer_state></buyer_state>
    <buyer_country>[...]</buyer_country>
    <buyer_phone></buyer_phone>
    <buyer_rating_nbr>269</buyer_rating_nbr>
    <buyer_rating_percentage>100</buyer_rating_percentage>
    <url_to_rating>http[...]</url_to_rating>
    </Notification_Data>
    </Delcampe_Notification>';

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
    curl_setopt($ch, CURLOPT_POSTFIELDS, $xmldata);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    $result = curl_exec($ch); // execute
    echo $result;
    curl_close($ch);


    This works just fine but nevertheless I do not get any notification from delcampe! What is the problem?

    Best regards

    Oliver Kuhn
  • prophila

    11 messages

    Allemagne

    Hi Thomas,

    yes, this is the way I do it already and it works when I test it. But I was not able to get anything from your Delcampe Notification until now! I only get these email "[D*] API - Disabling one of your notification destination URLs" / Email_Error_LimitReached from Delcampe.

    I do not know what is wrong...

    My test ([...] is replaced by correct original data which I only wiped out for this reply):

    $xmldata = '<?xml version="1.0" encoding="UTF-8"?>
    <Delcampe_Notification>
    <Notification_Token>[...]</Notification_Token>
    <Notification_Datetime>2020-09-23T10:50:34+00:00</Notification_Datetime>
    <Notification_Type>Seller_Item_Close_Sold</Notification_Type>
    <Notification_Data>
    <id_item>593738323</id_item>
    <seller_nickname>[...]a</seller_nickname>
    <item_title>[...]</item_title>
    <best_bid>6.50</best_bid>
    <best_bid_currency>EUR</best_bid_currency>
    <qty>1</qty>
    <available_quantity>0</available_quantity>
    <personal_reference>[...]</personal_reference>
    <url_to_item>[...]</url_to_item>
    <bids_qty>0</bids_qty>
    <visits_counter>7</visits_counter>
    <buyer_id>9999</buyer_id>
    <buyer_nickname>[...]</buyer_nickname>
    <buyer_email>[...]</buyer_email>
    <buyer_spoken_languages>Englisch (Vereinigtes Königreich)</buyer_spoken_languages>
    <buyer_language>Englisch (Vereinigtes Königreich)</buyer_language>
    <buyer_firstname>[...]</buyer_firstname>
    <buyer_surname>[...]</buyer_surname>
    <buyer_address>[...] </buyer_address>
    <buyer_zipcode>[...]</buyer_zipcode>
    <buyer_city>[...]</buyer_city>
    <buyer_state></buyer_state>
    <buyer_country>[...]</buyer_country>
    <buyer_phone></buyer_phone>
    <buyer_rating_nbr>269</buyer_rating_nbr>
    <buyer_rating_percentage>100</buyer_rating_percentage>
    <url_to_rating>http[...]</url_to_rating>
    </Notification_Data>
    </Delcampe_Notification>';

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
    curl_setopt($ch, CURLOPT_POSTFIELDS, $xmldata);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    $result = curl_exec($ch); // execute
    echo $result;
    curl_close($ch);


    This works just fine but nevertheless I do not get any notification from delcampe! What is the problem?

    Best regards

    Oliver Kuhn
    • Posté le 25 sept. 2020 à 06:41
    • #1192090
    Hi Thomas,

    why is the destination not https? Is http really correct or can it also be https?


    Best regards

    Oliver Kuhn
  • @thomas
    Administrateur

    348 messages

    Belgique

    Hi Thomas,

    why is the destination not https? Is http really correct or can it also be https?


    Best regards

    Oliver Kuhn
    • Posté le 25 sept. 2020 à 07:15
    • #1192099
    Hi prophila,

    The use of HTTP or HTTPS in the destination depends on your website.

    You receive the email 'Email_Error_LimitReached' because our server receives a 500 error when sending the notification. You should check your logs for errors.

    Best Regards
    --
    Thomas
    Delcampe Team
  • @thomas
    Administrateur

    348 messages

    Belgique

    You can send this request to reproduce it:

    <?php

    $curl = curl_init();

    curl_setopt_array($curl, array(
    CURLOPT_URL => "***your url***",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS =>"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n <Delcampe_Notification>\r\n <Notification_Token>MyNotificationToken</Notification_Token>\r\n <Notification_Datetime>2010-06-15T15:19:21+02:00</Notification_Datetime>\r\n <Notification_Type>Seller_Item_Close_Sold</Notification_Type>\r\n <Notification_Data>\r\n <seller_nickname>test_seller</seller_nickname>\r\n <id_item>55943975</id_item>\r\n <item_title>Title of the item</item_title>\r\n <best_bid>12.00</best_bid>\r\n <best_bid_currency>Eur</best_bid_currency>\r\n <qty>1</qty>\r\n <personal_reference>MyPersonalReference</personal_reference>\r\n <url_to_item>http%3A%2F%2Fwww.delcampe.net%2Fitem.php%3Flanguage%3DF%26id%3D96798976</url_to_item>\r\n <bids_qty>1</bids_qty>\r\n <visits_counter>2</visits_counter>\r\n <buyer_id>57252065</buyer_id>\r\n <buyer_nickname>test_buyer</buyer_nickname>\r\n <buyer_email> ; buyer@hotmail.com </buyer_email>\r\n <buyer_spoken_languages>French</buyer_spoken_languages>\r\n <buyer_language>French</buyer_language>\r\n <buyer_firstname>John</buyer_firstname>\r\n <buyer_surname>Doo</buyer_surname>\r\n <buyer_address>buyer street</buyer_address>\r\n <buyer_zipcode>6542</buyer_zipcode>\r\n <buyer_city>Paris</buyer_city>\r\n <buyer_state></buyer_state>\r\n <buyer_country>FR</buyer_country>\r\n <buyer_phone></buyer_phone>\r\n <buyer_rating_nbr>20</buyer_rating_nbr>\r\n <buyer_rating_percentage>98</buyer_rating_percentage>\r\n <url_to_rating>http%3A%2F%2Fwww.delcampe.net%2Fitem.php%3Flanguage%3DF%26id%3D96798976%23rating</url_to_rating>\r\n </Notification_Data>\r\n </Delcampe_Notification>",
    CURLOPT_HTTPHEADER => array(
    "Content-Type: application/xml"
    ),
    ));

    $response = curl_exec($curl);

    curl_close($curl);
    echo $response;
  • prophila

    11 messages

    Allemagne

    You can send this request to reproduce it:

    <?php

    $curl = curl_init();

    curl_setopt_array($curl, array(
    CURLOPT_URL => "***your url***",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS =>"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n <Delcampe_Notification>\r\n <Notification_Token>MyNotificationToken</Notification_Token>\r\n <Notification_Datetime>2010-06-15T15:19:21+02:00</Notification_Datetime>\r\n <Notification_Type>Seller_Item_Close_Sold</Notification_Type>\r\n <Notification_Data>\r\n <seller_nickname>test_seller</seller_nickname>\r\n <id_item>55943975</id_item>\r\n <item_title>Title of the item</item_title>\r\n <best_bid>12.00</best_bid>\r\n <best_bid_currency>Eur</best_bid_currency>\r\n <qty>1</qty>\r\n <personal_reference>MyPersonalReference</personal_reference>\r\n <url_to_item>http%3A%2F%2Fwww.delcampe.net%2Fitem.php%3Flanguage%3DF%26id%3D96798976</url_to_item>\r\n <bids_qty>1</bids_qty>\r\n <visits_counter>2</visits_counter>\r\n <buyer_id>57252065</buyer_id>\r\n <buyer_nickname>test_buyer</buyer_nickname>\r\n <buyer_email> ; buyer@hotmail.com </buyer_email>\r\n <buyer_spoken_languages>French</buyer_spoken_languages>\r\n <buyer_language>French</buyer_language>\r\n <buyer_firstname>John</buyer_firstname>\r\n <buyer_surname>Doo</buyer_surname>\r\n <buyer_address>buyer street</buyer_address>\r\n <buyer_zipcode>6542</buyer_zipcode>\r\n <buyer_city>Paris</buyer_city>\r\n <buyer_state></buyer_state>\r\n <buyer_country>FR</buyer_country>\r\n <buyer_phone></buyer_phone>\r\n <buyer_rating_nbr>20</buyer_rating_nbr>\r\n <buyer_rating_percentage>98</buyer_rating_percentage>\r\n <url_to_rating>http%3A%2F%2Fwww.delcampe.net%2Fitem.php%3Flanguage%3DF%26id%3D96798976%23rating</url_to_rating>\r\n </Notification_Data>\r\n </Delcampe_Notification>",
    CURLOPT_HTTPHEADER => array(
    "Content-Type: application/xml"
    ),
    ));

    $response = curl_exec($curl);

    curl_close($curl);
    echo $response;
    • Posté le 25 sept. 2020 à 07:49
    • #1192114
    Hi Thomas,

    ok, I found the failure, your IP was on our Block-List...

    I hope this works now. Your script works for me...

    Thanks for your help!


    Best regards

    Oliver Kuhn

Rejoignez la communauté des collectionneurs !

S'inscrire Se connecter