NUI comma api intergration (#1186)

* Prototyping comma api call

* Adding nui command

* Fixing hard coded vals

* Adding generalized nui changes

* Added both public and private api support

* Removing debug statement

* Chaning private api tag to use env variables

* FrameReader change for string parsing

old-commit-hash: 763493e988
This commit is contained in:
Ayman Saleh
2020-03-01 22:06:33 -08:00
committed by GitHub
parent af2a48f249
commit 1cae066cda
7 changed files with 86 additions and 13 deletions
+3 -2
View File
@@ -8,8 +8,9 @@ FileReader::FileReader(const QString& file_) : file(file_) {
void FileReader::process() {
timer.start();
// TODO: Support reading files from the API
startRequest(QUrl("http://data.comma.life/"+file));
QString str = file.simplified();
str.replace(" ", "");
startRequest(QUrl(str));
}
void FileReader::startRequest(const QUrl &url) {