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.
9 lines
No EOL
287 B
Python
9 lines
No EOL
287 B
Python
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)
|
|
|