username='your_email'; $api->password='your_password'; */ //connect using access_token, add it here https://moneyplatform.biz/token/api.html $api->access_token = 'your_access_token'; //getFilesList var_dump($api->getFilesList('/', 10, 0, ['date_created'=>-1], 'files')); /* array(3) { ["status"]=> string(7) "success" ["code"]=> int(200) ["files"]=> array(1) { [0]=> array(4) { ["id"]=> string(13) "522f0bf5672f8" ["name"]=> string(9) "README.md" ["is_available"]=> bool(true) ["is_folder"]=> bool(false) ["date_created"]=> string(19) "2014-03-31 16:24:40" ["size"]=> string(4) "2857" } } } */ // Upload file var_dump($api->uploadFile('PATH-TO-LOCAL-FILE')); /* * array (size=5) 'status' => string 'success' (length=7) 'success' => boolean true 'status_code' => int 200 'user_file_id' => string 'cd4540513fe4d' (length=13) 'link' => string 'https://k2s.cc/file/cd4540513fe4d' (length=33) */ //Download file from premium account var_dump($api->GetUrl('ID-FILE')); /* array(3) { ["status"]=> string(7) "success" ["code"]=> int(200) ["url"]=> string(351) "https://prx-128.keep2share.cc/e1079d8df1646/2792f8cb58038/4179479b4....." } error limit exceed array(5) { ["message"]=> string(25) "Download is not available" ["status"]=> string(5) "error" ["code"]=> int(406) ["errorCode"]=> int(21) ["errors"]=> array(1) { [0]=> array(2) { ["code"]=> int(2) ["message"]=> string(20) "Traffic limit exceed" } } } */