cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: aRe: create_shared_link: stdClass Object ( [error_summary] => path/not_found/.. [error]

create_shared_link: stdClass Object ( [error_summary] => path/not_found/.. [error]

axew3
Collaborator | Level 8
Go to solution

Hello ... i'm stuck in a stupid thing.

Two different methods, one create folder, the other create_shared_link_with_settings.

I create a folder, so i create a shared link for it immediately after, all work ok.

 

I so try to call on another part of the code, the same method create_shared_link_with_settings, which return, constantly

stdClass Object ( [error_summary] => path/not_found/.. [error] => stdClass Object ( [.tag] => path [path] => stdClass Object ( [.tag] => not_found ) ) )

 

I've try to pass empty json values like:

$data = '{"path" : "/test" , "settings" : {}}';
Or
$data = '{"path" : "/test"}';

but the error is ever the same. What hell i can be wrong into?

I think the json passed on curl call is the same, but do not work. Any idea?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
Yes, as an app folder app, you can only operate on items inside the app folder. Full Dropbox apps can operate on any item in the account.

View solution in original post

8 Replies 8

axew3
Collaborator | Level 8
Go to solution

p.s of course, the folder /test exist into dropbox root.

p.s i want to set a link for the folder /Apps in true, but the above do not work with any folder. The json that is send out on call is the same of the one that work, and i'm feeling like a stupid right now, after hours.

Greg-DB
Dropbox Staff
Go to solution
One thing that comes to mind is that if your app is registered for the "app folder" permission, your paths should be relative to the app's app folder, not the Dropbox root. Further, in that case you won't be able to access folders or files in the Dropbox root.

Otherwise, it's hard to say what the issue may be offhand. If you're still having trouble, can you open a ticket with the app name, user ID, and code you're using with the real values? Thanks in advance!

axew3
Collaborator | Level 8
Go to solution

Ok thank you, i will try little more, so will in case ticket the problem. As i can see looking behavior on dropbox.com, for the /Apps folder i can create a shared link, while i can't for 'root folder inside Apps', related to the app and always available.

Can i create_shared_link_with_settings for the /Apps folder, isn't it?

Greg-DB
Dropbox Staff
Go to solution
You should be able to create a shared link for any file or folder on dropbox.com. Likewise, you should be able to create a shared link for any file or folder using the API, as long as your app can access it. (App folders can't see items outside their app folder.)

Also, note that "shared links" are a different feature than "shared folders". You can't make app folders into shared folders.

axew3
Collaborator | Level 8
Go to solution

Thank for all info Greg ... it seem impossible to me but, but it suddenly work now! ... +- I would start to cry ... as i have not understand why! Same code. But ok! Hope the reason will become clear going on ...

axew3
Collaborator | Level 8
Go to solution

to complete the above, just testing, it seem to me that (maybe i'm wrong):
While the app is a Folder App you can set as shared, only existent folders inside Apps/your_app/
You can instead set as shared any folder, when your app is a Full Dropbox app.

The annoying queston ... isn't it?

Greg-DB
Dropbox Staff
Go to solution
Yes, as an app folder app, you can only operate on items inside the app folder. Full Dropbox apps can operate on any item in the account.

axew3
Collaborator | Level 8
Go to solution
I had say it was a stupid think ... what crazy .... going to improve my english ... bump :slightly_smiling_face:
Need more support?