Wie sende ich eine Postanfrage als JSON?Python

Python-Programme
Anonymous
 Wie sende ich eine Postanfrage als JSON?

Post by Anonymous »

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?)

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post