Skip to main content

Credential Manager API Client

Project description

Client for interacting with Credential Manager API

  • API version: 1.0

  • Package version: 1.6.0

Requirements

Python 3.7+

Installation & Usage

pip install credmgr

Then import the package:

from credmgr import CredentialManager

Getting Started

credential_manager = CredentialManager(api_token="api_token")

# List all Reddit apps
reddit_apps = credential_manager.reddit_apps()
for reddit_app in reddit_apps:
    print(reddit_app.name)

# Create a Reddit app
redditApp = credential_manager.reddit_app.create(
    name="reddit_app_name",
    client_id="client_id",
    client_secret="client_secret",
    user_agent="user_agent",
    redirect_uri="redirect_uri",
)

# Get the app by id
reddit_app = credential_manager.reddit_app(1)

# Edit the Reddit app
reddit_app.edit(client_id="client_id_2")

# Delete the app
reddit_app.delete()

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

credmgr-1.6.0.tar.gz (21.9 kB view hashes)

Uploaded Source

Built Distribution

credmgr-1.6.0-py3-none-any.whl (31.3 kB view hashes)

Uploaded Python 3

Supported by

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