From 8ec1e0127e451454c22ad9d812cb7182baa799ae Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 14 Jul 2017 22:37:52 +0800 Subject: [PATCH] Update Firebase.cpp 1. fix for API KEY authentication 2. typo fix --- src/Firebase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Firebase.cpp b/src/Firebase.cpp index 95cbecc8..eb7a05f4 100644 --- a/src/Firebase.cpp +++ b/src/Firebase.cpp @@ -25,7 +25,7 @@ std::string makeFirebaseURL(const std::string& path, const std::string& auth) { } url += path + ".json"; if (auth.length() > 0) { - url += "?auth=" + auth; + url += "?api_key=" + auth; } return url; } @@ -174,7 +174,7 @@ FirebasePush::FirebasePush(const std::string& host, const std::string& auth, } } -// FirebasePush +// FirebaseRemove FirebaseRemove::FirebaseRemove(const std::string& host, const std::string& auth, const std::string& path, FirebaseHttpClient* http)