Comments (4)
I'll send a PR when done with all the other stuff I need for my client.
I'm not with OTTO anymore though. ;)
from ebk-client.
The way to do it is:
No escaping + encoding the whole XML content explicitly with utf-8
like this:
def create_ad(self, xml):
url = "/users/{}/ads.json".format(self.username)
response = self._http_post(url, xml.encode('utf-8'))
return response
from ebk-client.
Hey Felix,
thanks for the hint. Feel free to PR this. Otherwise I will add it later.
OT: nice to see someone from Hamburg and from OTTO here on github ;-)
from ebk-client.
I guess this is resolved then :-)
from ebk-client.
Related Issues (20)
- XML creation for new posts HOT 10
- How to get VIEW count and SAVE count? HOT 3
- JavaScript (JS) port of the ebk-client HOT 1
- Question about Login-Data HOT 1
- Login procedure has changed HOT 3
- Fixed HOT 2
- Proxy Usage? HOT 4
- Edit Settings Through API? HOT 1
- API key information HOT 6
- trouble finding login credentials for api HOT 5
- Register with the API
- Account gets locked after API login HOT 6
- Endpoint for searching all instead of just own ads.
- Picture upload HOT 1
- Usage without account?
- How to create an Ad / create_ad() function isn't working / Cannot unmarshal content HOT 7
- correct credentials? HOT 3
- Mark conversation as read HOT 3
- How to send messages via API HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebk-client.