Skip to content

karrmagadgeteer2/stappcaptor

Repository files navigation

stappcaptor

Streamlit app for Captor marketing

Authenticating Against Captor

The GraphQL API requires a Bearer token obtained from https://auth.captor.se. Tokens can be acquired either through the browser callback flow or by making a direct POST request.

Requesting a Token via curl

curl -X POST \
  'https://auth.captor.se/token' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'username=<user>&password=<pass>&client_id=prod'

The response includes an access_token which can be supplied to GraphqlClient:

from graphql_client import GraphqlClient

client = GraphqlClient()
client.login_with_credentials('username', 'password')

The token is stored in ~/.captor_streamlit for subsequent runs.

Logging in via the Streamlit App

If you launch the app without a token, a login form will ask for your username and password. Submitting the form issues the same request as shown above and prints the JSON response. The access_token field is then used for queries during that session.

About

Streamlit app for Captor marketing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy