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

查看:154
本文介绍了如何使用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

推荐答案

当您查询具有文件列一类,解析将对象的数组回应此查询相匹配。在文件列将在以下格式:

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
    名:...... hello.txt的
  }

{ "url": "https://files.parse.com/.../hello.txt", "name": "...hello.txt" }

网​​址键包含文件的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天全站免登陆