Giter Site home page Giter Site logo

dropbox-c's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dropbox-c's Issues

drbGetMetadata return code question

r = drbGetMetadata(drbCli, &vp, DRBOPT_PATH, path, DRBOPT_LIST, true, DRBOPT_END);

will sometimes return 401
I am listing the root of my dropbox account which has several directories and files.
Any file name or directory name with spaces returns 401.

What am i doing wrong?
Thanks

asprintf issue

Hey Dwii,

Having the following issue while trying to use your API on Windows (trying to compile the example):
.\src\dropbox.c|156|undefined reference to `asprintf'|

Do you know how to solve this issue?
I'm using Code::Blocks with mingw32 GCC compiler.

Diana

Question about loading data from FILE

In the example file, I have seen this, which is writing a chunk of data in the memory at runtime.

memStream stream;
memStreamInit(&stream);
stream.data = "hello world!";
stream.size = strlen(stream.data);

err = drbPutFile(cli, NULL,
      DRBOPT_PATH, path,
      DRBOPT_IO_DATA, &stream,
      DRBOPT_IO_FUNC, memStreamRead,
      DRBOPT_END);

I'm just wondering

  1. if there is a way of load FILE *ptr from drbPutFile(...) instead of memStream stream.
  2. loading FILE into memStream

Thank you in advance.

Dropbox-C uses whose json.h version?

In attempting to use your dropbox.c code, I get a fatal error: /usr/include/json.h: No such file or directory.
A search with sudo find / -name "json.h" -print can't locate any such file on my machine.
May I ask which version of what package did you use for your code, so I can install the proper json.h? There seem to be quite a few versions out there.
Confession- - it's probably obvious that I don't code in java.

Windows Build?

I would pay for help getting this to build under Windows. So far I haven't had any luck after several days of trying.

Access Token in drbCreateClient

In the drbCreateClient function, you have key and secret for user where as DbxClient for Java Core Dropbox API, they only have access token. Which one should I use key/secret for the access token?

Question about compiling the example.c

After this

I'm running gcc example.c -std=c99

But the outputs are the following, can you help me to figure out what are the next steps?

/tmp/ccGg5l6W.o: In function `main':
example.c:(.text+0x3e): undefined reference to `drbInit'
example.c:(.text+0x56): undefined reference to `drbCreateClient'
example.c:(.text+0x78): undefined reference to `drbObtainRequestToken'
example.c:(.text+0x93): undefined reference to `drbBuildAuthorizeUrl'
example.c:(.text+0xd7): undefined reference to `drbObtainAccessToken'
example.c:(.text+0x184): undefined reference to `drbSetDefault'
example.c:(.text+0x1a9): undefined reference to `drbGetAccountInfo'
example.c:(.text+0x1fb): undefined reference to `drbDestroyAccountInfo'
example.c:(.text+0x235): undefined reference to `drbGetMetadata'
example.c:(.text+0x291): undefined reference to `drbDestroyMetadata'
example.c:(.text+0x2f6): undefined reference to `drbGetFile'
example.c:(.text+0x356): undefined reference to `drbDestroyMetadata'
example.c:(.text+0x36f): undefined reference to `memStreamInit'
example.c:(.text+0x3c1): undefined reference to `memStreamRead'
example.c:(.text+0x3ed): undefined reference to `drbPutFile'
example.c:(.text+0x423): undefined reference to `drbDestroyClient'
example.c:(.text+0x42d): undefined reference to `drbCleanup'
collect2: ld returned 1 exit status

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.