<?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 problem with single quote in api filepath in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/problem-with-single-quote-in-api-filepath/m-p/191222#M8326</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a straightforward dropbox api call in Ruby to get a file's modifier email &amp;amp; display name, like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;client = DropboxClient.new(generated_access_token)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;root_metadata = client.metadata(dropbox_filepath)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;user_email = root_metadata["modifier"]["email"]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;user_name = root_metadata["modifier"]["display_name"]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if the dropbox filepath includes a single quote, I haven't figured out how to escape it (I've tried %27, and various combos of backslashes and quote schemes). &amp;nbsp;Oddly, if I just remove the single-quote from the filepath entirely, the api works, but that would mean that the api can't tell the difference between files: &lt;EM&gt;Howre_you.doc&lt;/EM&gt; and &lt;EM&gt;How're_you.doc.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much obliged for any suggestions!&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:29:13 GMT</pubDate>
    <dc:creator>mattr</dc:creator>
    <dc:date>2019-05-29T09:29:13Z</dc:date>
    <item>
      <title>problem with single quote in api filepath</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/problem-with-single-quote-in-api-filepath/m-p/191222#M8326</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a straightforward dropbox api call in Ruby to get a file's modifier email &amp;amp; display name, like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;client = DropboxClient.new(generated_access_token)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;root_metadata = client.metadata(dropbox_filepath)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;user_email = root_metadata["modifier"]["email"]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;user_name = root_metadata["modifier"]["display_name"]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if the dropbox filepath includes a single quote, I haven't figured out how to escape it (I've tried %27, and various combos of backslashes and quote schemes). &amp;nbsp;Oddly, if I just remove the single-quote from the filepath entirely, the api works, but that would mean that the api can't tell the difference between files: &lt;EM&gt;Howre_you.doc&lt;/EM&gt; and &lt;EM&gt;How're_you.doc.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much obliged for any suggestions!&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:29:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/problem-with-single-quote-in-api-filepath/m-p/191222#M8326</guid>
      <dc:creator>mattr</dc:creator>
      <dc:date>2019-05-29T09:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with single quote in api filepath</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/problem-with-single-quote-in-api-filepath/m-p/191274#M8333</link>
      <description>It looks like you're using the Dropbox API v1 Ruby SDK, so you don't need to do any escaping yourself. The SDK will take care of it.&lt;BR /&gt;&lt;BR /&gt;Also, the API can see the single quote character. I just tried it out and it's working properly for me. Is it possible you have the wrong path? Also, when looking at the response, make sure to check "is_deleted" so you know if you're looking at an active or deleted file, as well as the returned "path" field so you can confirm which file you're getting back while debugging this.&lt;BR /&gt;&lt;BR /&gt;If you're still having trouble, please share the values you're using and the output you're getting and we'll be happy to look into it.</description>
      <pubDate>Wed, 19 Oct 2016 17:39:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/problem-with-single-quote-in-api-filepath/m-p/191274#M8333</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-19T17:39:22Z</dc:date>
    </item>
  </channel>
</rss>

