dwii / dropbox-c Goto Github PK
View Code? Open in Web Editor NEWDropbox library for C Language
License: MIT License
Dropbox library for C Language
License: MIT License
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
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.
I would pay for help getting this to build under Windows. So far I haven't had any luck after several days of trying.
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?
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
FILE *ptr
from drbPutFile(...)
instead of memStream stream
.Thank you in advance.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.