-Remove useless api_client interface
This commit is contained in:
parent
7ce4934cdc
commit
62287a2313
9 changed files with 28 additions and 156 deletions
|
@ -1,27 +1,18 @@
|
|||
from api_clients import *
|
||||
from configobj import ConfigObj
|
||||
import sys
|
||||
import json
|
||||
|
||||
try:
|
||||
config = ConfigObj('/etc/airtime/pypo.cfg')
|
||||
|
||||
except Exception, e:
|
||||
print 'error: ', e
|
||||
sys.exit()
|
||||
|
||||
api_clients = api_client.api_client_factory(config)
|
||||
api_clients = api_client.AirTimeApiClient()
|
||||
|
||||
dj_type = sys.argv[1]
|
||||
username = sys.argv[2]
|
||||
password = sys.argv[3]
|
||||
|
||||
type = ''
|
||||
source_type = ''
|
||||
if dj_type == '--master':
|
||||
type = 'master'
|
||||
source_type = 'master'
|
||||
elif dj_type == '--dj':
|
||||
type = 'dj'
|
||||
|
||||
source_type = 'dj'
|
||||
|
||||
response = api_clients.check_live_stream_auth(username, password, type)
|
||||
|
||||
print response['msg']
|
||||
print response['msg']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue