Closed dwhenry closed 3 years ago
Hi, thanks for your PR.
I don't like suggesting users of this library to use an interface like this:
namespace_id = client.get_current_account.root_info.root_namespace_id
client.middleware.prepend do |connection|
connection.headers['Dropbox-API-Path-Root'] = "{\".tag\": \"namespace_id\", \"namespace_id\": \"#{namespace_id}\"}"
end
We could allow this instead:
client.namespace_id = client.get_current_account.root_info.root_namespace_id
What do you think?
Closing in favor of #79
This requires access to
RootInfo
object in theget_current_account
endpoint with the results being used to set the root namespace on subsequent requests.@Jesus Can you please reset the VCR cassettes so they get the
root_info
object, it should all work as I have it working locally with monkey patching. :)