<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: multiple calls of `files_get_temporary_link` in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269173#M15866</link>
    <description>&lt;P&gt;Wow chirstius, what a quick reply. Thank you!&lt;BR /&gt;&lt;BR /&gt;here’s a basic code.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;PRE&gt;#!/usr/bin/env python
# -*- coding: utf-8 -*-

import dropbox
import os


access_token = "*****"
dbx = dropbox.Dropbox(access_token)

def getTemporaryLink(dbx, folder, name):
	path = '/%s/%s' % (folder, name)
	try:
		link = dbx.files_get_temporary_link(path)
	except dropbox.exceptions.HttpError as err:
		print '*** HTTP error', err
		return None
	return link

folder = "myFirstLevelFolder"

temporaryLink1 = getTemporaryLink(dbx, folder, "thing1.zip")
print temporaryLink1 # WORKS up to here.
&lt;BR /&gt;# temporaryLink2 = getTemporaryLink(dbx, folder, "thing2.zip") # breaks, throws error
# print temporaryLink2

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Mar 2018 16:07:41 GMT</pubDate>
    <dc:creator>mark2mark</dc:creator>
    <dc:date>2018-03-19T16:07:41Z</dc:date>
    <item>
      <title>multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269167#M15863</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just got stuck when trying to call&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dbx.files_get_temporary_link(path)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;multiple times in python. because I need to create a bunch of links for a dynamically fed input (different paths)&lt;BR /&gt;&lt;BR /&gt;Actually one call works, and as soon as I add one more, i get the Error:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;TypeError: 'GetTemporaryLinkResult' object is not callable&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I cannot find anything in the documentation that points to this issue. I see no reason why it ain’t working.&lt;BR /&gt;Help would be very much appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269167#M15863</guid>
      <dc:creator>mark2mark</dc:creator>
      <dc:date>2019-05-29T09:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269168#M15864</link>
      <description>&lt;P&gt;Hey mark2mark,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the sample you have provided, you are correct, there's nothing technically wrong with the call to get_temporary_link(), but the issue seems to revolve around what is being done to the result that comes back (a GetTemporaryLinkResult object).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you be willing to post a bit more of your code to help identify what might be causing this? Particularly what's being done with the result of the call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 15:57:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269168#M15864</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-03-19T15:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269173#M15866</link>
      <description>&lt;P&gt;Wow chirstius, what a quick reply. Thank you!&lt;BR /&gt;&lt;BR /&gt;here’s a basic code.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;PRE&gt;#!/usr/bin/env python
# -*- coding: utf-8 -*-

import dropbox
import os


access_token = "*****"
dbx = dropbox.Dropbox(access_token)

def getTemporaryLink(dbx, folder, name):
	path = '/%s/%s' % (folder, name)
	try:
		link = dbx.files_get_temporary_link(path)
	except dropbox.exceptions.HttpError as err:
		print '*** HTTP error', err
		return None
	return link

folder = "myFirstLevelFolder"

temporaryLink1 = getTemporaryLink(dbx, folder, "thing1.zip")
print temporaryLink1 # WORKS up to here.
&lt;BR /&gt;# temporaryLink2 = getTemporaryLink(dbx, folder, "thing2.zip") # breaks, throws error
# print temporaryLink2

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 16:07:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269173#M15866</guid>
      <dc:creator>mark2mark</dc:creator>
      <dc:date>2018-03-19T16:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269176#M15867</link>
      <description>&lt;P&gt;Thanks for posting. I was able to run your code and it&amp;nbsp;seems to work without error - both calls, each generating a unique link to the same file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error you are seeing would seem&amp;nbsp;to imply trying to invoke a method call directly on the results object (or a property of it). This code isn't doing anything beyond printing the results. Can you show some of the original code as-is and let's see if we can figure out what might be going wrong there?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 16:19:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269176#M15867</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-03-19T16:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269182#M15868</link>
      <description>&lt;P&gt;Well,&amp;nbsp;if you uncomment the second call, and hence have both ones running, it doesn’t work anymore at my side. With the exact code I posted before.&lt;BR /&gt;Is that what you also tried, too? You said »&lt;SPAN&gt;both calls, each generating a unique link to the same file.« but it should be two different files. Just saying.&lt;BR /&gt;&lt;BR /&gt;Now that I wanted to create a simplified version of the code for you, this one actually works. It is very weird though, because it&amp;nbsp;ain’t&amp;nbsp;too different from my actual code. I’ll post the now working one here (maybe also as a refernece for others). But I still don’t understand why my other code doesn’t work.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;#!/usr/bin/env python
# -*- coding: utf-8 -*-

import dropbox
import os
import traceback

access_token = '*****'
dbx = dropbox.Dropbox(access_token)

def getTemporaryLink(dbx, folder, name):
	path = '/%s/%s' % (folder, name)
	try:
		link = dbx.files_get_temporary_link(path)
	except dropbox.exceptions.HttpError as err:
		print '*** HTTP error', err
		return None
	return link

products = ["One.zip", "Two.zip"]

temporaryLinks = []
for product in products:
	x = getTemporaryLink(dbx, "myFolder", product)
	temporaryLinks.append(x)

for linkResult in temporaryLinks:
	print linkResult.link&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 17:27:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269182#M15868</guid>
      <dc:creator>mark2mark</dc:creator>
      <dc:date>2018-03-19T17:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269188#M15869</link>
      <description>&lt;P&gt;I tried it both ways - same file, and two different files. Both seemed to work without issue. Either way, I'm glad you've got it working now. Thanks for sharing the code hopefully someone else might find it valuable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck with the rest of the project!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 17:03:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269188#M15869</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-03-19T17:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269191#M15870</link>
      <description>&lt;P&gt;I appologize that I might have made some mistake somwhere. I really tried several times, different things. Well, anyway, I’m also glad.&lt;BR /&gt;&lt;BR /&gt;PS: The API is really good. Thank you for it and also for the incredibly fast feedback! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 17:23:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269191#M15870</guid>
      <dc:creator>mark2mark</dc:creator>
      <dc:date>2018-03-19T17:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269251#M15879</link>
      <description>&lt;P&gt;Ahem, do you know where my post is gone to?&lt;/P&gt;&lt;P&gt;I made one answer with a working code and the iteration calls. I don’t see it here in the tread anymore. Someone must have removed it. What happened?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 09:55:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269251#M15879</guid>
      <dc:creator>mark2mark</dc:creator>
      <dc:date>2018-03-20T09:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269269#M15881</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/642271"&gt;@mark2mark&lt;/a&gt;&amp;nbsp;The forum flagged your post as spam for some reason. I restored it. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 11:58:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269269#M15881</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-20T11:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269277#M15882</link>
      <description>&lt;P&gt;Thank you! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@13532C4C3505179FBF012F1C117AE2EB/emoticons/1f604.png" alt=":grinning_face_with_smiling_eyes:" title=":grinning_face_with_smiling_eyes:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 12:47:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/269277#M15882</guid>
      <dc:creator>mark2mark</dc:creator>
      <dc:date>2018-03-20T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/272548#M16184</link>
      <description>Conetect the my another mobile callx recording in my dropbox file and activited</description>
      <pubDate>Sun, 15 Apr 2018 14:50:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/272548#M16184</guid>
      <dc:creator>Vij</dc:creator>
      <dc:date>2018-04-15T14:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/272549#M16185</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/644520"&gt;@Vij&lt;/a&gt;&amp;nbsp;sorry, what?&lt;/P&gt;</description>
      <pubDate>Sun, 15 Apr 2018 14:53:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/272549#M16185</guid>
      <dc:creator>mark2mark</dc:creator>
      <dc:date>2018-04-15T14:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/285296#M17469</link>
      <description>&lt;P&gt;I have an error regarding files_get_temporary_link, how to trouble shooting this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;dropbox.exceptions.ApiError: ApiError('4d0b8810a976a3c06b9f77f38464199c', GetTemporaryLinkError(u'path', LookupError(u'not_found', None)))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 21:13:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/285296#M17469</guid>
      <dc:creator>aesanne</dc:creator>
      <dc:date>2018-07-18T21:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: multiple calls of `files_get_temporary_link`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/285413#M17479</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/742808"&gt;@aesanne&lt;/a&gt;&amp;nbsp;You can find information on each of the errors in &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.file_properties.LookupError" target="_blank"&gt;the documentation here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 'not_found' error means "There is nothing at the given path". You should check the 'path' value you're supplying to the call to make sure you're supplying a valid one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One good way to check what is in the account is to call &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder" target="_self"&gt;files_list_folder&lt;/A&gt;&amp;nbsp;with path="". That will list the contents of the root that your app has access to. (I.e., the root of the&amp;nbsp;Dropbox account, for full&amp;nbsp;Dropbox apps, or the root of the app folder, for app folder apps.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, this seems to be a different problem than what this thread was for, so if you're still having trouble, please &lt;A href="https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014" target="_blank"&gt;open a new thread&lt;/A&gt; with more details so we don't spam the other people on this thread.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 13:16:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/multiple-calls-of-files-get-temporary-link/m-p/285413#M17479</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-19T13:16:28Z</dc:date>
    </item>
  </channel>
</rss>

