<?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: utilisation de l'API filesGetThumbnail in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267090#M15688</link>
    <description>&lt;P&gt;L'importation de Node dont je parle est la `require ('dropbox')` dans votre code, et l'importation JavaScript à laquelle je fais référence est le `&amp;lt;script src=... `dans votre code.&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;The Node import I'm referring to is the `require('dropbox')` in your code, and the JavaScript import I'm referring to is the `&amp;lt;script src=...` in your code.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2018 15:42:57 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-03-01T15:42:57Z</dc:date>
    <item>
      <title>utilisation de l'API filesGetThumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267013#M15680</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;
&lt;P&gt;Je suis au début de mes essais du SDK javascript de Dropbox et j'ai le problème suivant:&lt;/P&gt;
&lt;P&gt;Le contexte :&lt;/P&gt;
&lt;PRE&gt;&amp;lt;head&amp;gt;
  &amp;lt;title&amp;gt;testDropbox&amp;lt;/title&amp;gt;
    &amp;lt;script src="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js"&amp;gt;
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
  &amp;lt;h1&amp;gt;Welcome to testDropbox&amp;lt;/h1&amp;gt;
&amp;lt;/body&amp;gt;
&lt;/PRE&gt;
&lt;PRE&gt;var Dropbox = require('dropbox').Dropbox;
let dbx = new Dropbox({accessToken:'MY_TOKEN'}); // siteyc
dbx.filesListFolder({path: '/musiques/Calypso_Rose'})
    .then(function(response) {
        console.log(response);
        dbx.filesGetThumbnail({"path": "/IMG91.jpeg"})
            .then(function (response) {
                var img = document.createElement('img');
                img.src=window.URL.createObjectURL(response.fileBlob);
                document.body.appendChild(img);
            })
            .catch(function (error) {
                console.log("got error:");
                console.log(error);
            })
    .catch(function (error) {
            console.log(error);
        });
    });
&lt;/PRE&gt;
&lt;P&gt;Et j'ai l'erreur :&lt;/P&gt;
&lt;P&gt;TypeError: t.buffer is not a function&lt;BR /&gt; at modules.js?hash=766e2ef4550445d16370e789a864189070692cbb:1007&lt;BR /&gt; at meteor.js?hash=c9a34f92f28ede5a42eac467d3fa1763b624436a:1168&lt;BR /&gt; at &amp;lt;anonymous&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Je n'arrive pas a trouver de solution sur internet.&lt;/P&gt;
&lt;P&gt;Quelqu'un peut petètre maider ?&lt;/P&gt;
&lt;P&gt;Merci&lt;/P&gt;
&lt;P&gt;YC&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:15:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267013#M15680</guid>
      <dc:creator>yvancoyaud</dc:creator>
      <dc:date>2019-05-29T09:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: utilisation de l'API filesGetThumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267077#M15686</link>
      <description>&lt;P&gt;Cela dépend de l'environnement dans lequel vous exécutez et de la manière dont vous importez la bibliothèque. Il y a quelques fils connexes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/API-support/Installations/m-p/263451#M15391" target="_blank"&gt;https://www.dropboxforum.com/t5/API-support/Installations/m-p/263451#M15391&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/issues/172" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/issues/172&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/issues/178" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/issues/178&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;En bref, je vois que vous importez la bibliothèque à la fois comme une bibliothèque JavaScript, ainsi qu'une bibliothèque de nœuds. Essayez de l'importer uniquement en tant que bibliothèque JavaScript.&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;S'il vous plaît excusez nos traductions. Nos traductions ont été créées en utilisant un traducteur en ligne. Nous aimerions soutenir toutes les langues, mais nous ne sommes pas équipés pour le faire. Voici la version anglaise:&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Please excuse our translations. Our translations were created using an online translator. We'd like to support every language, but we're not currently equipped to do so. Here is the English version:&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;This depends on what environment you're running in, and how you import the library. There are a few related threads:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/API-support/Thumbnails/m-p/263451#M15391" target="_blank"&gt;https://www.dropboxforum.com/t5/API-support/Thumbnails/m-p/263451#M15391&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/issues/172" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/issues/172&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/issues/178" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/issues/178&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In short, I see you're importing the library both as a JavaScript library, as well a Node library. Please try only importing it as a JavaScript library.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:43:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267077#M15686</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-01T14:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: utilisation de l'API filesGetThumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267078#M15687</link>
      <description>&lt;P&gt;Merci de votre réponse,&lt;/P&gt;
&lt;P&gt;mais qu'appelez vous une&amp;nbsp;&lt;SPAN&gt;bibliothèque de nœuds&lt;/SPAN&gt; ?? par rapport a une biliothèque javascript ?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:50:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267078#M15687</guid>
      <dc:creator>yvancoyaud</dc:creator>
      <dc:date>2018-03-01T14:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: utilisation de l'API filesGetThumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267090#M15688</link>
      <description>&lt;P&gt;L'importation de Node dont je parle est la `require ('dropbox')` dans votre code, et l'importation JavaScript à laquelle je fais référence est le `&amp;lt;script src=... `dans votre code.&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;The Node import I'm referring to is the `require('dropbox')` in your code, and the JavaScript import I'm referring to is the `&amp;lt;script src=...` in your code.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:42:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267090#M15688</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-01T15:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: utilisation de l'API filesGetThumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267169#M15695</link>
      <description>&lt;P&gt;Bonjour, suite,&lt;/P&gt;
&lt;P&gt;Si j'enlève le&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;script &lt;/SPAN&gt;&lt;SPAN&gt;src=&lt;/SPAN&gt;&lt;SPAN&gt;"https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;du head, ça ne change rien !!! un peu comme si ligne était inutile ...&lt;/P&gt;
&lt;P&gt;Si j'enlève le&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;Dropbox &lt;/SPAN&gt;= &lt;SPAN&gt;require&lt;/SPAN&gt;(&lt;SPAN&gt;'dropbox'&lt;/SPAN&gt;).Dropbox;&lt;/PRE&gt;
&lt;P&gt;bien sûr j'ai une autre erreur qui me dit&amp;nbsp; 'Dropbox is not a constructor' ce qui me semble&amp;nbsp; normal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Je suis un peu perdu et rien de bien clair les forums meme sur Stack Overflow.&lt;/P&gt;
&lt;P&gt;Vos lumières m'aideraient vraiment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Merci&lt;/P&gt;
&lt;P&gt;YC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 08:33:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267169#M15695</guid>
      <dc:creator>yvancoyaud</dc:creator>
      <dc:date>2018-03-02T08:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: utilisation de l'API filesGetThumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267212#M15697</link>
      <description>&lt;DIV id="gt-src-c" class="g-unit"&gt;
&lt;DIV id="gt-src-p"&gt;
&lt;DIV id="gt-src-wrap" class=""&gt;&lt;SPAN&gt;Lorsque vous supprimez la ligne `var Dropbox = require ('dropbox'). Dropbox;` line, vous devez changer la façon dont vous accédez au constructeur.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Au lieu de `new Dropbox`, faites` new Dropbox.Dropbox`.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="gt-res-c" class="g-unit"&gt;
&lt;DIV id="gt-res-p"&gt;
&lt;DIV id="gt-res-data"&gt;
&lt;DIV id="gt-res-wrap"&gt;
&lt;DIV id="gt-res-content"&gt;
&lt;DIV class="trans-verified-button-small" dir="ltr"&gt;&lt;SPAN class=""&gt;---&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;When you remove the `var Dropbox = require('dropbox').Dropbox;` line, you will need to switch how you access the constructor. Instead of `new Dropbox`, do `new Dropbox.Dropbox`.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:39:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267212#M15697</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-02T15:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: utilisation de l'API filesGetThumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267219#M15699</link>
      <description>&lt;P&gt;Mille merci, ça fonctionne.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Je remets ci-dessous le code si cela peut servir à d'autres développeurs sous Meteor.&lt;/P&gt;
&lt;P&gt;Dabord :&lt;/P&gt;
&lt;PRE&gt;$ meteor npm i dropbox -s&lt;/PRE&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;va inclure dans l'environnement du projet Meteor, "dropbox" et "dropbox-sdk"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;head&amp;gt;
  .....
        &amp;lt;script src="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js"&amp;gt;&amp;lt;/script&amp;gt;
  .....
&amp;lt;/head&amp;gt;
&lt;/PRE&gt;
&lt;PRE&gt;let dbx = new Dropbox.Dropbox({accessToken:'MY_APP_TOKEN'});
dbx.filesListFolder({path: ''})
    .then(function(response) {
        console.log(response)
        dbx.filesGetThumbnail({"path": "/IMG90.jpeg"})
            .then(function(response) {
                var img = document.createElement('img');
                img.src=window.URL.createObjectURL(response.fileBlob);
                document.body.appendChild(img);
            })
            .catch(function(error) {
                console.log("got error:");
                console.log(error);
            });

    })
    .catch(function (error) {
        console.log(error);
    })
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Voila cette configuration fonctionne pour moi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Merci encore à Greg K.&lt;/P&gt;
&lt;P&gt;YC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:00:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/267219#M15699</guid>
      <dc:creator>yvancoyaud</dc:creator>
      <dc:date>2018-03-02T16:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: utilisation de l'API filesGetThumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/272826#M16205</link>
      <description>Le problème d'origine `t.buffer n'est pas une fonction` devrait être corrigé dans la dernière version de la bibliothèque, actuellement v4.0.3.&lt;BR /&gt;---&lt;BR /&gt;The original `t.buffer is not a function` issue should be fixed in the latest version of the library, currently v4.0.3.</description>
      <pubDate>Tue, 17 Apr 2018 15:47:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/utilisation-de-l-API-filesGetThumbnail/m-p/272826#M16205</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-17T15:47:51Z</dc:date>
    </item>
  </channel>
</rss>

