如何使用 REST API 下载 Parse.com 文件类型? [英] How to download Parse.com file type using REST API?
问题描述
Parse.com REST API 文档列出了多种与 Parse.com 数据交互的方式,例如上传和下载类.它还描述了上传文件.但它没有提到如何从 Parse.com 下载文件.有谁知道这是否可行,如果可行,该怎么做?
The Parse.com REST API documentation lists many ways of interacting with Parse.com data, such as uploading and downloading classes. It also describes uploading files. But it does not mention how to download a file from Parse.com. Does anyone know if this is possible, and if so, how to do it?
Parse.com REST API 文档在这里:Parse.com REST API
The Parse.com REST API docs are here: Parse.com REST API
推荐答案
当您查询具有 file
列的类时,Parse 将使用与此查询匹配的对象数组进行响应.file
列将采用以下格式:
When you query for a class that has a file
column, Parse will respond with an array of objects which match this query. The file
column will be in the following format:
{"url": "https://files.parse.com/.../hello.txt","name": "...hello.txt"}
{ "url": "https://files.parse.com/.../hello.txt", "name": "...hello.txt" }
url
键包含文件的 url,这是您下载文件所需的全部内容.
The url
key contains the file's url, which is all you need to download the file.
这篇关于如何使用 REST API 下载 Parse.com 文件类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!