duanmu5039 2014-05-07 09:28
浏览 55
已采纳

MEGA PHP API数组元素

I am working with the MEGA api in PHP by smartinm which can be found here.

I can access the data fine but when I return a query I am getting an array with the below values.

           [0] => Array
            (
                [h] => no idea
                [p] => no idea
                [u] => no idea
                [t] => 0
                [a] => Array
                    (
                        [n] => file_name.txt
                        [c] => this_only_appears_in_images
                    )

                [k] => no idea
                [s] => no idea
                [ts] => no idea

As you can see I have no idea what h,p,u,t,a,k,s,ts are. I know 'n' is name and 'c' appears only when an image file is there. Does anyone know off-hand what each element stands for?

Thanks, Niall

  • 写回答

2条回答 默认 最新

  • dongyi9330 2014-05-07 09:40
    关注
    h: The ID of the node ;
    p: The ID of the parent node (directory) ;
    u: The owner of the node ;
    t: The type of the node:
        0: File
        1: Directory
        2: Special node: Root (“Cloud Drive”)
        3: Special node: Inbox
        4: Special node: Trash Bin
    a: The attributes of the node. Currently only contains its name.
    k: The key of the node (used to encrypt its content and its attributes) ;
    s: The size of the node ;
    ts: The time of the last modification of the node.
    

    Source: http://julien-marchand.fr/blog/using-the-mega-api-with-php-examples/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看