https://github.com/cunkz/arcgis-py-api
Acrgis Python API Example
https://github.com/cunkz/arcgis-py-api
api arcgis python
Last synced: 3 months ago
JSON representation
Acrgis Python API Example
- Host: GitHub
- URL: https://github.com/cunkz/arcgis-py-api
- Owner: cunkz
- Created: 2023-11-06T09:33:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-06T09:59:19.000Z (over 1 year ago)
- Last Synced: 2025-01-25T08:26:31.472Z (4 months ago)
- Topics: api, arcgis, python
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arcgis Python API Example
Example of API for Arcgis via Python
## Usage
To use this example, you can follow the steps below :
1. Make sure you already install python3.7 or higher
2. Install requirement library : `pip install aiohttp jsonschema coverage requests responses`
3. Create .env file based on .env.example
4. Run example : `python service.py`
5. Run this curl from your command line or other app (this curl use env `AUTH_BASIC_USER=test` and `AUTH_BASIC_PASSWORD=test`):
```
curl --location 'http://localhost:8080/api/v1/location' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic dXNlcjpwYXNzd29yZA==' \
--data '{
"data": [
{
"timestamp": "2023-09-18 12:23:58",
"uniqueid": "AAA",
"lng": 1.11,
"lat": 1.11
}
]
}'
```Enjoy