Started integration of pypo with Campcaster. Refactored pypo so that
it can work with either OBP or Campcaster. Added the liquidsoap binary. Started to add the PHP API scripts to send the correct data to pypo (those these are not pretty - all one-off scripts for each API command). Added Zend to the default path.
This commit is contained in:
parent
d6eb1412b7
commit
4a055dde50
16 changed files with 706 additions and 415 deletions
9
3rd_party/pypo/api_clients/api_client_factory.py
vendored
Normal file
9
3rd_party/pypo/api_clients/api_client_factory.py
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
import campcaster_api_client
|
||||
import obp_api_client
|
||||
|
||||
def create_api_client(config):
|
||||
if config["api_client"] == "campcaster":
|
||||
return campcaster_api_client.CampcasterApiClient(config)
|
||||
elif config["api_client"] == "obp":
|
||||
return obp_api_client.ObpApiClient(config)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue