data = {
'ids': [12, 3, 4, 5, 6 , ...]
}
urllib2.urlopen("http://abc.example/api/posts/create",ur ... code(data))
< /code>
Ich möchte eine Postanforderung senden, aber eines der Felder sollte eine Liste von Zahlen sein. Wie kann ich das machen? (JSON?)
Wie sende ich eine Postanfrage als JSON? ⇐ Python
-
- Similar Topics
- Replies
- Views
- Last post