Created
July 15, 2021 10:24
-
-
Save RayyanNafees/3dbaf7fb082503ef5137c8e9295f6458 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase_admin | |
default_app = '[DEFAULT APP]' | |
db = firebase_admin.firestore.client(app=default_app) | |
users = db.collection('user') | |
get_token = lambda id: users.document(id).get('deviceToken') | |
__all__ = ['get_token'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment