我正在尝试使用Firebase的REST API仅检索具有特定Podcast API的剧集。 curl请求返回数据库中的所有剧集,而不仅仅是podcastID =“863897795”
的剧集。这是我尝试的第一个查询:
curl https://myurl.firebaseio.com/episodes.json?orderBy=\"podcastID\"&equalTo="863897795"
这是第二个:
curl https://myurl.firebaseio.com/episodes.json?orderBy=\"podcastID\"&endAt="863897795"&startAt="863897795"
这是我的模特:
episodes
b44dfeb16d5feb75d592d2f21b605cbb
downloadURLString: "http://traffic.libsyn.com/timferriss/Tim_Ferris..."
duration: 0
fileType:
"audio/mpeg"
podcastID:
"863897795"
publishDate:
1456271851
summary:
"This episode is a special double header. It fea..."
title:
"Kaskade and Sekou Andrews: The Musician and the..."
f68ee7bd673662a5b416577536ea8e6d
downloadURLString:
"http://starbucks.podspot.de/files/starbucks_cof..."
duration:
0
fileType:
"audio/mpeg"
podcastID:
"218302289"
publishDate:
1226305317
summary:
"Das \"Coffee and Crime\" Krimi-Festival in Kooper..."
title:
"Starbucks Special - Coffee and Crime Festival R..."
这是我的索引:
"episodes": {
".indexOn": ["podcastID"]
}