rework api import
This commit is contained in:
parent
2817b899df
commit
bb9ee3afed
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
# custom
|
||||
api_keys.txt
|
||||
api_keys.py
|
||||
|
||||
# ---> Python
|
||||
# Byte-compiled / optimized / DLL files
|
||||
|
@ -12,5 +12,6 @@ see api_keys.txt(not synced to git)
|
||||
|
||||
|
||||
## API docs
|
||||
https://openweathermap.org/current
|
||||
- https://openweathermap.org/current
|
||||
- https://developer.twitter.com/en/docs/twitter-api
|
||||
|
||||
|
15
publish.py
15
publish.py
@ -1,9 +1,16 @@
|
||||
"""
|
||||
import API keys, these variables are usable
|
||||
|
||||
TWITTER_APIKEY
|
||||
TWITTER_APISECRET
|
||||
TWITTER_BEARER
|
||||
TWITTER_ACCESSTOKEN
|
||||
TWITTER_ACCESSSECRET
|
||||
OWM_KEY
|
||||
"""
|
||||
from api_keys import *
|
||||
from TwitterAPI import TwitterAPI
|
||||
|
||||
twitter_consumerKey = 'NOKBXKUVfzXdG0fgkI0eDWF00'
|
||||
twitter_consumerSecret = '3OFsRYQYFo2ZW5F7fZQ9Po6HHL4twVFPZAoy7aUum7cN0LZVZ1'
|
||||
twitter_accessKey = '1308331480553267202-HE8MpxG7fGpAgHsbZaYdo5uHCurxDf'
|
||||
twitter_accessSecret = 'TlEnSvUJefvrqP2wwNDFHTm5CdZiFz9YfQLTjkHoCqm9A'
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user