1
如何通過電子郵件ID「[email protected]」搜索數據?通過curl過濾firebase json數據php
火力數據
{
"-K5swDCvGh-fWBC3rvzz": {
"email": "[email protected]",
"facebook_id": "123456789",
"password": "111",
"source": "facebook",
"username": "subu"
},
"-K5sxFSS4NC8tRRCtN-t": {
"email": "[email protected]",
"google_id": "987456321",
"password": "111",
"source": "google",
"username": "subu_google"
}
}
我的數據捲曲
https://subu.firebaseio.com/users.json
我的火力規則看下面
{
"rules": {
"users": {
".indexOn": "email"
},
".read": true,
".write": true
}
}
難道我的回答幫助?如果是這樣,請將其標記爲已接受。保持未答覆的隊列清潔是一件好事。 –