-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
23 lines (18 loc) · 936 Bytes
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Basic App settings"""
from urlparse import urljoin
# Amazon application id
# Go to https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/handling-requests-sent-by-alexa
# Search for "Getting the Application ID for a Skill"
# https://developer.amazon.com/edw/home.html#/skills/list > edit > Application Id
#
# App settings
SITE_NAME = "stackoverflow"
SITE_NAME_SPEAKABLE = "Stack Overflow"
BASE_AP_ID = 'amzn1.echo-sdk-ams.app.'
APP_UID = '55cecd87-e312-4679-a97e-469a5e3bfcb4'
APP_ID = BASE_AP_ID + APP_UID
# URL Settings
BASE_API_URL = 'https://api.stackexchange.com/2.2/'
BASE_QUERY_PARAMS = '?order=asc&site={site_name}'.format(site_name=SITE_NAME)
ASK_QUESTION_ENDPOINT = BASE_API_URL + 'search/advanced' + BASE_QUERY_PARAMS + '&sort=votes&q={question}'
GET_ANSWERS_ENDPOINT = BASE_API_URL + 'questions/{question_id}' + BASE_QUERY_PARAMS + '&sort=votes&filter=!*1ShIjGxdqfo8*16Wj*cAZl_Uj)x5F0ytNr2MbPmP'