Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JosiahOne/quickbase-cpp-wrapper
A QuickBase API Wrapper in c++.
https://github.com/JosiahOne/quickbase-cpp-wrapper
Last synced: 16 days ago
JSON representation
A QuickBase API Wrapper in c++.
- Host: GitHub
- URL: https://github.com/JosiahOne/quickbase-cpp-wrapper
- Owner: JosiahOne
- Created: 2015-04-14T18:56:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-17T18:48:18.000Z (over 8 years ago)
- Last Synced: 2024-07-31T22:58:15.926Z (3 months ago)
- Language: C
- Size: 13.1 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 46
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README #
This is a QuickBase API wrapper for use in C++ code. It is still quite rough, but functional. You will want to reference the QuickBase API documentation for details on the API calls other than what exists in the wrapper header file. [Quickbase API Site](http://www.quickbase.com/api-guide/index.html)
### Setup ###
#### Pre-Reqs ####
You will need to build and install the proper libcurl library for your machine and place the .lib in time-clock\custom_libraries\lib_dbg. Everything else is self-contained.
#### VS Setup Data ####
In your linker settings, make sure `Additional Library Directories` is set to `custom_libraries\lib_dbg`
Also make sure `Additional Dependencies` includes `libcurld.lib`.
Finally, add `CURL_STATICLIB` to your `Preprocessor Definitions`.#### Integrating into your project ####
Integration is unfortunately semi-difficult due to its many library dependencies. For example, if you are integrating with an MFC application, the `Use of MFC` must be set to "Use MFC in a shared DLL". Static linking won't work because the libraries are not. You could build your own customized libcurld and children, if you want a statically linked binary.Integration is not done through a .lib, simply because I hate using them. Instead, simply clone the repo into your application's source. Doing so comes with the added benefit of being able to modify the API if you so desire.
Note: If you modify something that you feel would be beneficial to more than just yourself, please create an issue and attach a patch!
### Contribution guidelines ###
### Who do I talk to? ###
* Repo owner or admin (Josiah Bruner)
## Examples ##
### Getting the ticket ###
#include
int main()
{
QBWrapper *qbWrapper = new QBWrapper;
qbWrapper->SetAppLocation("https://hostname.quickbase.com");
std::string ticket = qbWrapper->Authenticate("username", "password", 25, "").GetTicket().text;
}
### Getting a record's field (fid = 15) contents ####include
int main()
{
QBWrapper *qbWrapper = new QBWrapper;
qbWrapper->SetAppLocation("https://hostname.quickbase.com");
std::string ticket = qbWrapper->Authenticate("username", "password", 25, "").GetTicket().text;
std::string fieldContents = qbWrapper->GetFieldContents(15, ticket, "", "", "dbid_here", 25);
}