cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Learn more about how Connie, a member of the Community, uses Dropbox here!

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Check sync status of dropbox app, programmatically via c++ or api

Check sync status of dropbox app, programmatically via c++ or api

Kyri
Explorer | Level 4

I wonder if it is possible to tell when dropbox is syncing programmatically,

ideally indirectly via c++

for example let's assume that when dropbox is syncing it writes a tinly .txt or .xml etc file somewhere in its programFiles directory

a developer can check that file (read only) and get dropbox status?

or via the dropbox api??

 

kind regards..

10 Replies 10

Re: Check sync status of dropbox app, programmatically via c++ or api

Greg-DB
Dropboxer

No, unfortunately Dropbox doesn't offer a way to check the client status programmatically, but I'll pass this along as a feature request. 

Re: Check sync status of dropbox app, programmatically via c++ or api

Здравко
Super Collaborator | Level 20

Hi @Greg-DB,

Actually it's possible, but is platform dependent and available only for Dropbox on Linux. :wink: Take a look in the socket "~/.dropbox/command_socket".

@Kyri, If your platform is Linux, you are happy, otherwise - have to hope something will change.

Re: Check sync status of dropbox app, programmatically via c++ or api

Kyri
Explorer | Level 4

I am currently using Windows SRV for this project unfortunately

 

 

Re: Check sync status of dropbox app, programmatically via c++ or api

Greg-DB
Dropboxer

Thanks for sharing that additional information @Здравко . Please note though that that socket itself is not officially documented and is not considered an officially supported API for third parties to use to interact with the Dropbox desktop client, so I can't recommend using it. (It's meant for the dropbox.py script we offer for managing the client on Linux via the CLI. One could technically program against the commands offered by that script, but it's not meant as a programmatic interface like the API is.)

Re: Check sync status of dropbox app, programmatically via c++ or api

Здравко
Super Collaborator | Level 20

:grinning::grin: May be that's a serious Dropbox drawback and have to be considered seriously. :wink:

Re: Check sync status of dropbox app, programmatically via c++ or api

Greg-DB
Dropboxer

@Здравко Thanks for the feedback! Yes, I've filed this as a feature request for an official API for checking the client programmatically.

Re: Check sync status of dropbox app, programmatically via c++ or api

Здравко
Super Collaborator | Level 20

Hi @Greg-DB,

I hope you can add to the feature request, "~/.dropbox/command_socket" related, also support for "~/.dropbox/iface_socket" socket. The second one isn't only available on Linux, but also on Mac. Documentation for, already available, interfaces would be helpful and could meet many applications in practice. :wink: These interfaces wasn't changed for least 4-5 years (might be more), so it's finally time to be documented (and got supported officially).

Re: Check sync status of dropbox app, programmatically via c++ or api

Greg-DB
Dropboxer

@Здравко Thanks for the additional note and information!

Re: Check sync status of dropbox app, programmatically via c++ or api

Roason
New member | Level 2

I know it's been a little more than a year; but I would like a programmatic way to access the Windows sync app status.  Is there a way for the community to find out what feature requests are being considered and weigh in on them in some way?

Poll
Are you starting new work habits this year?
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?