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条)

报告相同问题?

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题