-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py-example
83 lines (72 loc) · 3.27 KB
/
config.py-example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python2
# -*- coding: utf8 -*-
'''
This file is part of FIXME Events.
FIXME Events is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
FIXME Events is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FIXME Events. If not, see <http://www.gnu.org/licenses/>.
'''
user_agent = 'fixme-events-bot/0.1 (https://wiki.fixme.ch/Events)'
secret_key = ''
site_url = 'https://events.fixme.ch'
site_email = '[email protected]'
street_number = '79'
# Agenda du libre (CH)
agendalibre = {
'url': 'http://www.agendadulibre.ch',
}
# Twitter
# https://apps.twitter.com/app/6277528
twitter = {
'account': '_fixme',
'app_key': '',
'app_secret': '',
'access_token': '',
'access_secret': '',
}
# Techup
techup = {
'url': 'http://techup.ch',
'techup': '',
'techupauth2': '',
'geoloc': '{"address_components":[{"long_name":"79","short_name":"79","types":["street_number"]},{"long_name":"Rue de Genève","short_name":"Rue de Genève","types":["route"]},{"long_name":"Lausanne","short_name":"Lausanne","types":["locality","political"]},{"long_name":"Lausanne","short_name":"Lausanne","types":["administrative_area_level_2","political"]},{"long_name":"Vaud","short_name":"VD","types":["administrative_area_level_1","political"]},{"long_name":"Switzerland","short_name":"CH","types":["country","political"]},{"long_name":"1004","short_name":"1004","types":["postal_code"]}],"formatted_address":"Rue de Genève 79, 1004 Lausanne, Switzerland","geometry":{"location":{"lat":46.5247028,"lng":6.613842200000022},"location_type":"ROOFTOP","viewport":{"ta":{"d":46.5233538197085,"b":46.5260517802915},"ga":{"b":6.61249321970854,"d":6.615191180291504}}},"types":["street_address"]}',
}
# Google
gplus = {}
# https://code.google.com/apis/console/
# Create a service account and save the key to key.p12
gcal = {
'calendarId': '[email protected]',
'client_email': '',
'timezone': 'Europe/Zurich',
}
# Fixme.ch (CIVICRM)
# https://fixme.ch/civicrm/ajax/doc/api#explorer
civicrm = {
'site_name': 'FIXME Website',
'site_key': '',
'api_key': '',
'rest_url': 'https://fixme.ch/sites/all/modules/civicrm/extern/rest.php',
'event_url': 'https://fixme.ch/civicrm/event/info',
'default_address_id': 18, #corresponding to config.street_number
}
# Facebook
#http://aseriesoftubes.com/articles/obtaining-facebook-page-access-tokens-the-4-step-program/
facebook = {
'state': 'xufz2oAAD7WRCmfgGxjBJPXnBlv1TnTV',
'client_id': '',
'client_secret': '',
'access_token': '',
'url': 'https://graph.facebook.com/fixmehackerspace/feed',
'url_auth': 'https://graph.facebook.com/oauth/access_token',
'url_page': 'https://facebook.com/fixmehackerspace',
'url_pic': 'https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xfa1/t1.0-9/400419_313649045338844_1285783717_n.jpg',
'oauth': 'https://www.facebook.com/dialog/oauth',
}