0

私は次のものを持っています:

curl -X POST \ -H "X-Parse-Application-Id: appid" -H "X-Parse-REST-API-Key: restkey" -H "Content-Type: text/plain" -d 'Hello, World !' https://api.parse.com/1/files/hello.txt

そして私は戻ってきます:

{"url":"http://files.parse.com/7680c0e7-b398-4b43-91f0-61b12934c690/08d828ef-1185-4036-b8ab-228764fbeb69-hello.txt","名前":"08d828ef-1185- 4036-b8ab-228764fbeb69-hello.txt"}

使用するファイル名は何ですか?

4

1 に答える 1

0

返された URL - http://files.parse.com/の後のすべてを取得します

それは次のようになります。

curl -X POST \ -H "X-Parse-Application-Id: appid" \ -H "X-Parse-REST-API-Key: reskey" \ -H "Content-Type: application/json" \ -d ' { "name": "blisdco", "picture": { "name": "7680c0e7-b398-4b43-91f0-61b12934c690/08d828ef-1185-4036-b8ab-228764fbeb69-hello.txt", "__type": "ファイル" } }' \ https://api.parse.com/1/classes/CustomerImages

そして返されるものは次のとおりです。

{"createdAt":"2012-06-12T20:16:05.360Z","objectId":"yHLhqMgBAj"}

Parse Data Browser で CustomerImages テーブルを見ると、URL のファイル名部分を含むエントリが表示されます。

于 2012-06-12T20:36:18.860 に答える