Plugin Support
Bruce
(@ninjateamwp)
Hi @gerdski ,
Can you please deactivate FileBird temporarily, then check the library, did you see any differences?
Kind regards,
-Bruce-
Hello,
it did work in the meantime, but I don’t know why.
Anyay, it works 🙂
Thank you very much!
Plugin Support
Bruce
(@ninjateamwp)
Hi @gerdski ,
Glad to know it worked now!
But then, to add… If you use this for the same domain you don’t need to use API, just use the FileBird function here is the code:
use FileBird\Classes\Tree;
$folderList = Tree::getFolders( null );
In your code, please try add:
set_time_limit(0);
Thank you.
Kind regards,
-Bruce-
Hey, great. I was looking for this.
What other functions are available?
Are all the API calls available as functions?
Thanks!
Plugin Support
Bruce
(@ninjateamwp)
Hi @gerdski ,
Yes, we have another functions here:
Get Folder Detail
use FileBird\Model\Folder as FolderModel;
FolderModel::findById( $folder_id, 'id, name, parent' );
Get Folders
use FileBird\Classes\Tree;
Tree::getFolders( null );
Create New Folder
use FileBird\Model\Folder as FolderModel;
FolderModel::newOrGet( $name, $parent_id );
Get Attachment Ids by Folder Id
use FileBird\Classes\Helpers as Helpers;
Helpers::getAttachmentIdsByFolderId( $folder_id );
Add attachment(s) to folder
use FileBird\Model\Folder as FolderModel;
FolderModel::setFoldersForPosts( $ids, $folder );
Thank you.
Kind regards,
-Bruce-