Skip to main content

Unofficial API Client for GoGov CRM

Project description

gogov

Unofficial API Client for GoGov CRM

install

pip install gogov

basic CLI usage

gogov export-requests --email="jdoe@fakecity.gov" --password="2c56477e97ab8b2d180a6513" --site="fakecityXYZ" --city-id="123" $PWD/requests.csv

basic Python usage

from gogov import Client

# client automatically logs in when initialized
client = Client(
    username = "jdoe",
    password = "2c56477e97ab8b2d180a6513",
    site = "fakecityXYZ",
    city_id = "123"
)

## download csv of all requests to a file
client.export_requests("requests.csv")

## Submit a 311 request
location = {
    "shortAddress": "123 Any Street, Anytown, TN, 12345",
    "coordinates": {
        "longitude": -12.345678
        "latitude": 87.654321
    }
}

# Use "fields" for any additional necessary fields
client.submit_request(
    topic_id="12345"
    location=location,
    description="Test"
    contact_id=1234567
    assigned_to_id=7654321
    fields = [{"id": "field1", "value": "value1"}, {"id": "field2", "value": "value2}]
)

## log out
client.logout()

advanced usage

coming soon

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gogov-0.6.0.tar.gz (16.9 kB view details)

Uploaded Source

File details

Details for the file gogov-0.6.0.tar.gz.

File metadata

  • Download URL: gogov-0.6.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for gogov-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c28d9632e7715a7c93ab5473913796629bf82aefd88d34eea1a73668abd82c3e
MD5 3bf6b8af2ec236d549e1b500b26ffdc9
BLAKE2b-256 2c1fe7c8a5acd09b02863a43b4c87085faf6e17319c16da98b6b8579ae577b58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page