This repo is part of Arikaim CMS project.
pip install arikaim-client
from arikaim.client import ArikaimClient
client = ArikaimClient(host,apiKey)
data = {
request data fields key: value
}
response = client.request(method,url,data)
print(response.status)
print(response.to_dictonary())
#Add header
client.add_header({ 'key': 'value' })
#POST request
response = client.post(url,data)
#GET request
response = client.get(url)
#PUT request
response = client.put(url,data)
# Save base64 encoded file
client.save_ecoded_file(response,field_name, file_name)
# upload local file
client.upload(path, file_name, field_name, data, method = POST)