tejado / ebk-client

eBay Kleinanzeigen/Classifieds API client
MIT License
97 stars 18 forks source link

XML creation for new posts #1

Open tejado opened 7 years ago

tejado commented 7 years ago

New ad's can be only created over XML. The API function create_ad is already there (which sends the input to the server) but the function/class to create the XML data is missing. It should be kept simple and no dependencies made to big XML libs...

Documentation of posting ad's: http://api.ebay-kleinanzeigen.de/docs/pages/ads#write-ad

makefu commented 6 years ago

i know it is already 1.5h years but i'd really love to see this documentation :+1: tbh i do not really get the original documentation, e.g. what is really needed to create a new post with pictures and the like.

tejado commented 6 years ago

Seems they removed the documentation. I will check it!

tc-maxx commented 6 years ago

Hi

I also try the CreateAd-Request for some time. I only get the following error message:

<? xml version = \ "1.0 \" encoding = \ "UTF-8 \" standalone = \ "yes \"?> <api-base-error xmlns = \ "http: //www.ebayclassifiedsgroup.com/schema/types/v1 \" http-status-code = \ "400 \">

Can not unmarshal content ------------------------------------------------------------------------------------ My request: EUR 99.00 SPECIFIED_AMOUNT OFFERED PRIVATE Fahnenmast aus Auluminium 10m - 100mm Fahnenmast aus Auluminium 10m - 100mm - Viele Grüße Leipzig 04103 Maximilian xxxxxxxx PRIVATE Sonstiges Weiteres 80
makefu commented 4 years ago

any update on this? i'd love to be able to create ads with images :+1:

felixb commented 4 years ago

I've a jinja2 template for creating the xml from a dict. I could inline it into the ebk_client. Are you interested?

makefu commented 4 years ago

@felixb totally! a gist would be fine as well

anzgar01 commented 4 years ago

is there any way to get the documentation for the api? Every link I found gets me a 404 error.

Edit: What I am trying to do is create an advanced search. For that I would need to send search requests to the api, which will then be processed further. I can't seem to find a call for that, only for "my ads" which is not what I need to do. Thanks in advance :-)

tejado commented 4 years ago

You can find the doc over search engine caching or archive.org. Feel free to create a PR to archive the documentation here :)

waldekwg commented 3 years ago

Could someone post an ad example that can be used with create_ad? It's very important for me. The documentation under archive.org is not available anymore

tejado commented 3 years ago

@waldekwg Hi, please have a look here: https://github.com/tejado/ebk-client/issues/3 and the general documentation is still available under archive.org: https://web.archive.org/web/20160321233930/https://api.ebay-kleinanzeigen.de/docs/pages/ads