This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from the whiskey engine example | |
# uses the Sharrock RPC client (https://github.com/Axilent/sharrock). Created by us, but open source, not specific to the Axilent API. | |
from sharrock.client import HttpClient, ResourceClient | |
# some things in the API are modeled as RESTful resources and use the ResourceClient, others are straight RPC and use the HttpClient | |
axl = HttpClient('%s/api' % settings.AXILENT_ENDPOINT,'axilent.content','beta3',auth_user=settings.AXILENT_API_KEY) | |
content_resource = ResourceClient('%s/api/resource' % settings.AXILENT_ENDPOINT,'axilent.content','beta3','content',auth_user=settings.AXILENT_API_KEY) | |
# Featured Whiskey |