Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Simpler C++ API #25

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Conversation

JasonD94
Copy link
Contributor

@JasonD94 JasonD94 commented Oct 2, 2015

Simplified the C++ API by removing redundant code, and moving copied code into functions, like get_data_funct, post_data_function, empty_project_check and check_http_code. These functions were previously copied all over the place and it made the code longer and harder to read then it needed to be.

In the future I'll probably look into using a different JSON library to simplify a few other places (all the looping in get_dataset is due to restrictions with the current libary, PicoJSON).

const std::string devURL = "http://rsense-dev.cs.uml.edu/api/v1";
const std::string local_baseURL = "http://localhost:3000";
const std::string localURL = "http://localhost:3000/api/v1";
const std::string live_baseURL = "http://isenseproject.org";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https for live url

@JasonD94
Copy link
Contributor Author

JasonD94 commented Oct 5, 2015

I fixed the live URL (added https) and made the email / password blank, so they won't be on GitHub.
@bdonald25 @asalani93

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants