Hello!
Thanks for help.
I find function “Get Attachment Ids by Folder Id”, but it’s not suitable. I need to minimize my queries to wpapi. If I get Attachment Ids, I have to make a request for each media id.
It would be optimal to have a field “folderid” in object of media in order to make a single request. It is possible to do something like that with Filebird?
You’re right, it works. JWT plugin was the problem, deactivating it fixed my trouble.
My code now:
const token = 'my-generated-token';
const result = await wp.url(reactPress.api.rest_url + 'filebird/public/v1/folders')
.setHeaders('Authorization', 'Bearer ' + token);
Thanks for help!
Thanks for your answer.
Okey, I will try and reply about results
-
This reply was modified 2 years ago by ifraimka1.