Skip to content
Snippets Groups Projects
Unverified Commit ee56b6b9 authored by murych's avatar murych
Browse files

garbage away

parent ab8d7984
No related branches found
No related tags found
No related merge requests found
from slacker import Slacker
from config import bot_secret_
from vk import Session, API
import facebook
 
 
def auth_slack():
Loading
Loading
@@ -20,17 +19,4 @@ def auth_vk():
api = API(session)
 
return api
def auth_facebook(cfg):
graph = facebook.GraphAPI(cfg['access_token'])
resp = graph.get_object('me/accounts')
page_access_token = None
for page in resp['data']:
if page['id'] == cfg['page_id']:
page_access_token = page['access_token']
graph = facebook.GraphAPI(page_access_token)
return graph
\ No newline at end of file
name: slackvk
dependencies:
- openssl=1.0.2h=1
- pip=8.1.2=py35_0
- python=3.5.2=0
- readline=6.2=2
- setuptools=26.1.1=py35_0
- sqlite=3.13.0=0
- tk=8.5.18=0
- wheel=0.29.0=py35_0
- xz=5.2.2=0
- zlib=1.2.8=3
- pip:
- blessings==1.6
- click==6.6
- curtsies==0.2.9
- flask==0.11.1
- greenlet==0.4.10
- gunicorn==19.6.0
- itsdangerous==0.24
- jinja2==2.8
- markupsafe==0.23
- pygments==2.1.3
- six==1.10.0
- slacker==0.9.25
- vk==2.0.2
- wcwidth==0.1.7
- werkzeug==0.11.11
from flask import Flask, abort, request, render_template
 
from auth import auth_facebook, auth_slack
from auth import auth_slack
from config import *
from message import *
 
Loading
Loading
facebook
flask
slacker
vk
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment