如何使用 REST API 下载 Parse.com 文件类型? [英] How to download Parse.com file type using REST API?

查看:27
本文介绍了如何使用 REST API 下载 Parse.com 文件类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆