diff --git a/.gitignore b/.gitignore index e356ac2..fee125d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ auth/lib auth/path *.pyc +.idea +service-account.json +venv \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..397fe98 --- /dev/null +++ b/config.json @@ -0,0 +1,20 @@ +{ + "conditions": [ + ], + "parameters": { + "welcome_message": { + "defaultValue": { + "value": "Welcome" + } + } + }, + "version": { + "versionNumber": "1", + "updateTime": "2019-03-21T11:59:28.345Z", + "updateUser": { + "email": "firebase-adminsdk-hhc2e@vampiro-b9fd9.iam.gserviceaccount.com" + }, + "updateOrigin": "REST_API", + "updateType": "INCREMENTAL_UPDATE" + } +} diff --git a/config/configure.py b/config/configure.py index 8a56f87..a682428 100644 --- a/config/configure.py +++ b/config/configure.py @@ -5,7 +5,7 @@ from oauth2client.service_account import ServiceAccountCredentials -PROJECT_ID = 'PROJECT_ID' +PROJECT_ID = 'vampiro-b9fd9' BASE_URL = 'https://firebaseremoteconfig.googleapis.com' REMOTE_CONFIG_ENDPOINT = 'v1/projects/' + PROJECT_ID + '/remoteConfig' REMOTE_CONFIG_URL = BASE_URL + '/' + REMOTE_CONFIG_ENDPOINT diff --git a/messaging/messaging.py b/messaging/messaging.py index 3f1c039..ed55078 100644 --- a/messaging/messaging.py +++ b/messaging/messaging.py @@ -15,7 +15,7 @@ from oauth2client.service_account import ServiceAccountCredentials -PROJECT_ID = '' +PROJECT_ID = 'vampiro-b9fd9' BASE_URL = 'https://fcm.googleapis.com' FCM_ENDPOINT = 'v1/projects/' + PROJECT_ID + '/messages:send' FCM_URL = BASE_URL + '/' + FCM_ENDPOINT diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..0572013 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +requests +oauth2client +google-api-python-client \ No newline at end of file