Git Product home page Git Product logo

ebk-client's People

Contributors

exislow avatar felixb avatar tejado avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ebk-client's Issues

correct credentials?

Hi there,
I am new to python and ebk, so sorry for the stupid question, but which are the correct credentials to use with the example.py?
app-username = eBay Kleinanzeigen Username? Or is it the ebay developer username?
ebay-username = ebay username, or is it ebay kleinanzeigen username?

Sorry for asking, but I just don't know where to put which credentials.

I always geht access denied when trying the example.

Thanks a lot in advance!!

How to create an Ad / create_ad() function isn't working / Cannot unmarshal content

Hey there,

I tried to create an Ad with the create_ad() function. To the function I passed the following xml

<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:category>

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

I wrote the following little example in Python

from ebk_client import EbkClient

api = EbkClient('android', 'xxx', 'mittlereSchiene', 'xxx')

with open("data_file.xml", "r") as read_file:
    ad = read_file.read()

api.create_ad(ad)

The answer is the following api error:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><api-base-error xmlns="http://www.ebayclassifiedsgroup.com/schema/types/v1" http-status-code="400"><api-errors><api-error><message>Cannot unmarshal content</message></api-error></api-errors><api-debug-errors/><api-field-errors/></api-base-error>

Can you help me to fix this error?

Regards

Picture upload

Hi!
Does anyone can provide an example how to upload pictures in the correct way?
Thx!

Usage without account?

Is it possible to use the API without having an account? For example to search Kleinanzeigen?

Account gets locked after API login

Anyone knows how to prevent that? I get forced to reset my password everytime I login via API.

Using it on my local machine, so IP-address is the same.

Mark conversation as read

Hi,

by using the ebay-kleinanzeigen-api i can read conversations without problem.
My only problem is to mark messages as read. The messages are not set as read by just reading it.

Any solutions?

Regards

Login procedure has changed

Your code is not working anymore, since you need to acquire a token first to be able to send any requests to the API. The solution is documented here: exislow/kleinanzeigen-magic#12

Btw... In the next push I will refer to this repository in my README.md. Maybe you want also to refer to my implementation of this python library :-)

XML creation / quoting

Hi there,

I'm trying to create an ad with your library. Basic XML creation works and I can post new ads with boilerplate text.

I'm trying to post an ad with ä in the title with following variations:

  1. No escaping at all: <ad:title>foo bär</ad:title>
  2. HTML escaping: <ad:title>foo b&auml;r</ad:title>
  3. Double HTML escaping: <ad:title>foo b&amp;auml;</ad:title>

1 and 2 fail with

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<api-base-error xmlns="http://www.ebayclassifiedsgroup.com/schema/types/v1" http-status-code="400">
    <api-errors>
        <api-error>
            <message>Cannot unmarshal content</message>
        </api-error>
    </api-errors>
    <api-debug-errors/>
    <api-field-errors/>
</api-base-error>

3 creates the ad, but the title is foo b&auml;r

Do you have any suggestions?

Proxy Usage?

Hello is there a working way to use proxies? Did not work for met yet. Great libary by the way! Greetings :)

How to get VIEW count and SAVE count?

So the Kleinanzeigen website as well as the app show next to the ad the view count of the ad and also the count of how many times people saved the ad to their bucket list. But I cannot see this values querying the my ads (https://api.ebay-kleinanzeigen.de/api/users/EMAIL/ads.json) or a specific ad (https://api.ebay-kleinanzeigen.de/api/ads/ADID.json).

Does anybody know how I can retrieve these counters?

Edit:
I have reversed the app code further and found this API https://api.ebay-kleinanzeigen.de/api/v2/counters/ads/vip/ADID.json to retrieve the view count.

{
    "adId": "ADID",
    "value": 33
}

SAVE aka watchlist count can be retrieved using this API https://api.ebay-kleinanzeigen.de/api/v2/counters/ads/watchlist?adIds=ADID

{
    "counters": [
        {
            "adId": "ADID",
            "value": 3
        }
    ]
}

API key information

Not sure whether I just didn't see it, but could you maybe add some info where to obtain the app-username and app-password mentioned in the readme?

Question about Login-Data

Hi,

i am unable to enter the correct username and password form.
Always get the message:

raise AttributeError(f'Access Denied {r.status_code}') AttributeError: Access Denied 401

api = EbkClient('[email protected]', 'password123', '[email protected]', 'password123')

Whats wrong?

trouble finding login credentials for api

I have decompiled the latest ebay kleinanzeigen apk and gone through the described steps, but i have trouble to find the username and password field variables in the code. they seem to have changed something. could anyone give a hint where to find them nowadays or maybe share them?

How to send messages via API

Hi @tejado & @felixb,

I am actually struggling with making an API call to send a message. Unfortunately this case isn't included in your examples.
The same like the problem with posting / creating an ad I have faced firstly with unmarshalled content and now with the 500 Internal Server Error. I am using the xml structure which is stated in the prototype but with the missing error code it is nearly impossible to know which field is missing.
I am assuming that /replies/reply-to-ad is the write URL but could you verify this? Maybe adding this to the example.py would also help others :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.