https://github.com/arikaim/api-client-py
Arikaim CMS api client for python
https://github.com/arikaim/api-client-py
Last synced: 7 months ago
JSON representation
Arikaim CMS api client for python
- Host: GitHub
- URL: https://github.com/arikaim/api-client-py
- Owner: arikaim
- License: other
- Created: 2022-01-28T21:37:12.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-05T13:55:47.000Z (11 months ago)
- Last Synced: 2025-04-01T14:21:01.027Z (7 months ago)
- Language: Python
- Size: 18.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
## Arikaim CMS Api Client for python


This repo is part of [Arikaim CMS](http://arikaim.com) project.
### Installation
```sh
pip install arikaim-client
```
### Usage
```python
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)
```