cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 

Shared not created and yet it is?

Mark L.45
Collaborator | Level 8

I create a shared link with the HTTP API. I can get said link? OK, but when I ask it to show me all shared links, it doesn't list it?

Seems to be linked to a specific directory? acme123X in my case? Very odd indeed.

So I run this...

curl -X POST https://api.dropboxapi.com/2/sharing/create_shared_link --header "Authorization: Bearer ab-MyAUTH-" --header "Content-Type: application/json" --data "{\"path\": \"/slidestack/acme123X/acme123X.007.png\",\"short_url\": false}"

It returns this...

{"url": "https://www.dropbox.com/s/a37z7kungv21jyv/acme123X.007.png?dl=0", "visibility": {".tag": "public"}, "path": "/slidestack/acme123X/acme123X.007.png"}

But if I than look for it thru this ..

curl -X POST https://api.dropboxapi.com/2/sharing/list_shared_links  --header "Authorization: Bearer ab-myAUTH"  --header "Content-Type: application/json"  --data "{}"

It is not there? And yes I check the cursor; I just posted a PERL script to do this. Here it is again.

#!/usr/bin/perl

use JSON;

use Data::Dumper;

 

$preheat = `curl -X POST https://api.dropboxapi.com/2/sharing/list_shared_links  --header "Authorization: Bearer ab-myAUTH"  --header "Content-Type: application/json"  --data "{}"`;

$pcursor = $cursor = "";

 

do {

$pcursor = $cursor;

$text = decode_json($preheat);

print  Dumper($text);

$cursor = $text->{'cursor'};

#print "[$pcursor] [$cursor]\n";

if ($cursor ne $pcursor) {

$paras = "\\\"cursor\\\":\\\"$cursor\\\"";

$cmd = "curl -X POST https://api.dropboxapi.com/2/sharing/list_shared_links  --header \"Authorization: Bearer ab-myAUTH\"  --header \"Content-Type: application/json\"  --data \"{$paras}\"";

$preheat = `$cmd`;

} else {

$cursor = "";

}

} until ($cursor eq "");

I run ./decode.pl > decode.txt

I grep for my link 

grep path decode.txt | grep acme123X

I find 1197 links, but nothing for acme123X

Am I going mad?

3 Replies 3

Re: Shared not created and yet it is?

Dropboxer
Dropboxer

Hi Mark, thanks for the report! I can't seem to reproduce this issue though. That is, I created a new shared link, and it was then returned by list_shared_links.

Can you share the output from your list_shared_links call(s) so we can look into it? (Feel free to redact the tokens for the other shared links of course.) If you'd prefer to share privately, you can open a ticket here:

https://www.dropbox.com/developers/contact

Re: Shared not created and yet it is?

Mark L.45
Collaborator | Level 8

I clicked on this link and shared the information. I had. I have since deleted the app, since I shared more than I should have it seems. Give me an email address so I may share this as an attachment perhaps?

Re: Shared not created and yet it is?

Dropboxer
Dropboxer

We responded to the ticket already, so just reply to the email you received with our response.

If you haven't received such an email, please check your spam folder.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?