Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML creation for new posts #1

Open
tejado opened this issue Oct 20, 2016 · 10 comments
Open

XML creation for new posts #1

tejado opened this issue Oct 20, 2016 · 10 comments

Comments

@tejado
Copy link
Owner

tejado commented Oct 20, 2016

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
Copy link

makefu commented Mar 23, 2018

i know it is already 1.5h years but i'd really love to see this documentation 👍
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
Copy link
Owner Author

tejado commented May 4, 2018

Seems they removed the documentation. I will check it!

@tc-maxx
Copy link

tc-maxx commented May 16, 2018

Hi

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

<api-base-error xmlns = \ "http: //www.ebayclassifiedsgroup.com/schema/types/v1 " http-status-code = \ "400 ">


Can not unmarshal content </ message>
</ Api-error>
</ Api errors>


</ Api-base-error>


My request:

ad:ad

<ad:price>		
	<types:currency-iso-code>
		<types:value localized-label="EUR">EUR</types:value>
	</types:currency-iso-code>
	
	<types:amount>99.00</types:amount>
	
	<types:price-type>
		<types:value>SPECIFIED_AMOUNT</types:value>
	</types:price-type>		
</ad:price>

<ad:ad-type>
	<ad:value>OFFERED</ad:value>
</ad:ad-type>

<ad:poster-type>
	<ad:value>PRIVATE</ad:value>
</ad:poster-type>

<ad:title>Fahnenmast aus Auluminium 10m - 100mm</ad:title>	
<ad:description>Fahnenmast aus Auluminium 10m - 100mm - Viele Grüße</ad:description>

<ad:ad-address>
	<types:state>Leipzig</types:state>
	<types:zip-code>04103</types:zip-code>
</ad:ad-address>

<ad:contact-name>Maximilian</ad:contact-name>
<ad:user-id>xxxxxxxx</ad:user-id>
<ad:seller-account-type>PRIVATE</ad:seller-account-type>
<ad:phone/>
	
<cat:category id="87">
	<cat:id-name>Sonstiges</cat:id-name>
	<cat:localized-name>Weiteres</cat:localized-name>
	<cat:parent-id>80</cat:parent-id>
</cat:category>

<loc:location id="3878"/>
</ad:ad>

@makefu
Copy link

makefu commented Mar 8, 2020

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

@felixb
Copy link
Contributor

felixb commented Apr 3, 2020

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

@makefu
Copy link

makefu commented Apr 3, 2020

@felixb totally! a gist would be fine as well

@anzgar01
Copy link

anzgar01 commented Jul 15, 2020

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
Copy link
Owner Author

tejado commented Jul 15, 2020

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

@waldekwg
Copy link

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
Copy link
Owner Author

tejado commented Aug 25, 2021

@waldekwg
Hi, please have a look here: #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants