isogeo / api-sample-oauth2-ccg-py

Sample project to illustrate how to authentifiy to Isogeo API with Client Credentials Grant flow and build a basic search form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Isogeo User oAuth2 example - Desktop Search Form

DO NOT USE THIS CODE IN PRODUCTION

Usage

Run this sample:

  1. Clone/download this repository
  2. Open a prompt (bash, powershell...),
  3. Move into this directory
  4. Paste your client_secrets.json file. If you don't have, ask one to Isogeo!

With your installed Python

  1. Create a virtualenv (PowerShell: py -3 -m venv env), then activate it

  2. Install prerequisites:

    python -m pip install --upgrade -r requirements.txt
  3. Run it:

    # using autocompletion widgets and async/await
    python isogeo_tk_search_form_py3_async.py
    # using 'pure' ttk library
    python isogeo_tk_search_form_pure.py

About

Sample project to illustrate how to authentifiy to Isogeo API with Client Credentials Grant flow and build a basic search form

License:GNU Lesser General Public License v3.0


Languages

Language:Python 100.0%