本文整理匯總了Python中firebase.firebase.FirebaseApplication方法的典型用法代碼示例。如果您正苦於以下問題:Python firebase.FirebaseApplication方法的具體用法?Python firebase.FirebaseApplication怎麽用?Python firebase.FirebaseApplication使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類firebase.firebase
的用法示例。
在下文中一共展示了firebase.FirebaseApplication方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_firebase
# 需要導入模塊: from firebase import firebase [as 別名]
# 或者: from firebase.firebase import FirebaseApplication [as 別名]
def test_firebase(request):
firebase_db = FirebaseApplication('https://vkusotiiki-bg.firebaseio.com/', None) # no authentication
users = firebase_db.get('/User', None)
print(users)
return HttpResponse('Heeey', {})
示例2: init
# 需要導入模塊: from firebase import firebase [as 別名]
# 或者: from firebase.firebase import FirebaseApplication [as 別名]
def init():
return firebase.FirebaseApplication('https://rembot-68f41.firebaseio.com/', None)
示例3: __init__
# 需要導入模塊: from firebase import firebase [as 別名]
# 或者: from firebase.firebase import FirebaseApplication [as 別名]
def __init__(self, loop=None, session=None):
self.loop = loop if loop else asyncio.get_event_loop()
self.session = session if session else ClientSession(loop=self.loop)
self.api_root = 'https://hacker-news.firebaseio.com/'
self.firebase = firebase.FirebaseApplication(
'https://hacker-news.firebaseio.com/', None)
示例4: __init__
# 需要導入模塊: from firebase import firebase [as 別名]
# 或者: from firebase.firebase import FirebaseApplication [as 別名]
def __init__(self, url):
self.firebase = firebase.FirebaseApplication(url, None)