Separating client id from app code

This commit is contained in:
Laszlo Zeke 2017-04-02 20:02:23 +02:00
parent 100a24bd77
commit 248aeca9ab
2 changed files with 19 additions and 1 deletions

17
TwitchRSS/app_id.py Normal file
View File

@ -0,0 +1,17 @@
#
# Copyright 2017, 2016 Laszlo Zeke
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
TWITCH_CLIENT_ID = 'Insert_key_here'

View File

@ -22,8 +22,9 @@ import datetime
import logging
from feedformatter import Feed
from google.appengine.api import memcache
from app_id import TWITCH_CLIENT_ID
TWITCH_CLIENT_ID = 'Insert_key_here'
VODCACHE_PREFIX = 'vodcache'
USERIDCACHE_PREFIX = 'userid'
VOD_URL_TEMPLATE = 'https://api.twitch.tv/kraken/channels/%s/videos?broadcast_type=archive,highlight,upload'