Browse Source

Separating client id from app code

main
Laszlo Zeke 7 years ago
parent
commit
248aeca9ab
  1. 17
      TwitchRSS/app_id.py
  2. 3
      TwitchRSS/twitchrss.py

17
TwitchRSS/app_id.py

@ -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'

3
TwitchRSS/twitchrss.py

@ -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'

Loading…
Cancel
Save