Test feedback notification API

18 views
Skip to first unread message

Jan van den Berg

unread,
Mar 27, 2017, 6:49:52 AM3/27/17
to Delcampe.net - API Technical Group
Hello,

I'd like to test the Delcampe Notifications (https://github.com/Delcampe/delcampe-apirest-client/wiki/Notifications) on my personal Feedback API URL, using Postman/Poster/Curl or any other tool that can simulate POST requests.

However I am struggling with the right POST request configuration, I know Delcampe sends this XML data,  when an item is added to the Delcampe shop:

 <?xml version="1.0" encoding="UTF-8"?>
                     <Delcampe_Notification>
                         <Notification_Token></Notification_Token>
                         <Notification_Datetime>2017-03-24T21:30:40+01:00</Notification_Datetime>
                         <Notification_Type>Seller_Item_Add</Notification_Type>
                     <Notification_Data>
                     <id_item>0437997729</id_item>
                                <personal_reference>14702</personal_reference>
                                <id_parent></id_parent>
                         </Notification_Data>
                     </Delcampe_Notification>

But what specific parameters/settings/headers should I use in Postman/Poster to simulate Delcampe Notifications?

Regards,
Jan

Hassan Amouhzi

unread,
Mar 27, 2017, 7:35:59 AM3/27/17
to Delcampe.net - API Technical Group
Hi Jan,

Unfortunately there's no sandbox to make your tests. The items you'll send will be seen by every Delcampe member.

We encourage you thus to send your Test items in small quantity and to immediately close them when your test is done.

Sorry for not being able to help you.

Best regards,
Hassan,
Delcampe.net

Jan van den Berg

unread,
Mar 27, 2017, 7:38:04 AM3/27/17
to Delcampe.net - API Technical Group
No this is not what I mean. I want to test the FEEDBACK API.

The program running on MY server. 

So I need to know the way in which the POST request FROM Delcampe is formed.

Regards,
Jan

Hassan Amouhzi

unread,
Mar 27, 2017, 7:59:42 AM3/27/17
to Delcampe.net - API Technical Group
As you can read on the documentation:

Those notifications are sent by a simple http call on the URL of your choice (feedback url) with the xml in the POST data.

We are working with raw post call and the data is a raw string that contains the XML.

Is it clear for you ?


 

Jan van den Berg

unread,
Mar 29, 2017, 3:56:14 AM3/29/17
to Delcampe.net - API Technical Group
Hello Hassan,

Yes, it is clear. I have created a test form that POSTs raw (Delcampe formatted) XML to a feedback php file with the name "delcampeNotification", so I can test handling of the different notifications.

This works and is good enough for now.

Thanks!

Jan
Reply all
Reply to author
Forward
0 new messages