douxian7808 2017-01-16 10:44
浏览 68
已采纳

CloudKit和Web服务器

I want to save data from my iOS application (written in swift), and make a web application as well.

How would I be able to use CloudKit with Swift (client) and PHP/Javascript (server)?

  • 写回答

1条回答 默认 最新

  • dongzhong2008 2017-01-17 18:22
    关注

    Apple provide a Javascript API designed for use in a web page, and a web services API designed to be used from server application.

    That being said it is also possible to use the Javascript API from a NodeJS command line application running on a server. Just like it is possible to use the web services API wrapping it in the programming language of your choice, since ultimately it is just web calls.

    Subscription notifications are a rather tricky thing to setup and might not work yet on server command line apps.

    For reference, in case you are interested in a PHP wrapper around the web services API, you can view my attempt here: https://github.com/malhal/CloudKit-PHP

    Or if you want to try cutting edge Swift on Linux use: https://github.com/BennyKJohnson/OpenCloudKit

    Here is a python wrapper: https://github.com/Longhanks/PyCloudKit

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧