-
Way to search by property value?
I am assigning a custom property value to a file. Is there a way to search by it? I don't see property groups in your search example for: https://api.dropboxapi.com/2/files/search_v2 How do I make sure that my query only matches a property group value?
-
Error in search... options: expected array, got string
I am trying to use search to find any file with txt extension inside a particular path. I get the error: "Error in call to API function "files/search_v2": options: expected array, got string". What am I doing wrong here: $options = array( "filename_only" => true, "max_results" => 1, "file_status" => "active", "path" =>…
-
Download ANY file in folder
To download a file I need a full path. What if I don't know the name of the file? How would I list that path then to grab any txt file? "path": "/Homework/math/Prime_Numbers.txt"
-
To use properties/update, am I required to first do properties/add first?
In order to use properties/update, am I required to first do properties/add on a file? Reading your description for the "update", it seems it should "Add, update or remove properties associated" with the file. But when when I try to use "update" on new file, it doest not work - it only works for a file for which I had…
-
Rename folder - Getting async_job_id
I am renaming a folder via https://api.dropboxapi.com/2/files/move_batch_v2 (using that to avoid"lock contention"). And I am getting this returned: {".tag": "async_job_id", "async_job_id": "dbjid:AADB5ZMuOs7nIAy6oJ2NYg0MkdhI6nlw_Kb5bfLyb7LxBS1x_e5JfQuktSrgq7kXjKxbPFwHIly3aWR2YWt0BXqt"} What is this? I am expecting to see…
-
List all tags
Is there a way to view all tags on the account via API? I see https://api.dropboxapi.com/2/files/tags/get ... but for this you need paths to items. I want all tags for all folders or files. Is that possible?
-
Error: property_groups: expected list, got string
I am trying to add property groups to a file with https://content.dropboxapi.com/2/files/upload and I am getting an error "HTTP header "Dropbox-API-Arg": property_groups: expected list, got string". How is my property groups a string? What am I doing wrong? $meta = array( "name" => "this is something" ); $fields = array(…
-
Upload string value to file - PHP
I need to upload a simple string via api - there is no "file" on the server - the string will be generated in my PHP code. First, does it need to be in binary? Second, when I upload, I get a "1" written into a file - and thats it. How do I get that string uploaded? I don't get any errors back. Help! $fields = array( "path"…
-
Error: "request body: id... did not match pattern"
I am trying to get contents of a text file via https://api.dropboxapi.com/2/file_requests/get and I get this error: "Error in call to API function "file_requests/get": request body: id: 'id:Jc0ALBXAshIAAAAAAAB3tw' did not match pattern '[-_0-9a-zA-Z]+'" Here is my relevant code: $fields = array( "id" =>…
-
"Add a few details about this folder" - how to access
Dropbox allows you to "Add a few details about this folder..." under folder properties. Is there a way to fetch that info via api? I couldn't find it in your documentation. I don't see it under folder_metadata... Is that possible at all?…