このコマンドを使用して、json パケットを xily にプッシュしようとしています。
jstr = '''{ "version":"1.0.0", "datastreams":[{"id":"one","current_value":"100.00"},{"id":"two","current_value":"022.02"},{"id":"three","current_value":"033.03"},{"id":"four","current_value":"044.04"}] }'''
これを呼び出して実行します:
cmd = "curl --request PUT %s --header %s --verbose %s" % (jstr,apiKey,feedId)
私はこのようにして、送信間で JSON を操作できるようにしています (私はそれを dict に変更して元に戻します)。
データが送信されていないというエラーがスローされます。私はcurl、xily、pythonが初めてなので、本当に混乱しています。どんな助けでも大歓迎です。