Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.21 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.21 KB

#Dropbox-C

##Introdution

This repository contains a C language library, under MIT License, that provides access to the Dropbox Core API.

##Requirements

##Features and examples Almost all Dropbox Core API methods are available with their arguments. Their JSON answers are translated into C structures.

An example is provided here. But to briefly illustrate its usage, here is what a call to the file_put method looks like:

  FILE *file = fopen("/tmp/hello.txt", "r"); 
  drbPutFile(cli, NULL,
             DRBOPT_ROOT, DRBVAL_ROOT_AUTO,
             DRBOPT_PATH, "/hello.txt",
             DRBOPT_IO_DATA, file,
             DRBOPT_IO_FUNC, fread,
             DRBOPT_END);
  fclose(file);

##Known Issues This library is in BETA and still have some issues in multi-threaded programs.