Skip to main content

Openscreen's SDK for QR Engage and Tracking

Project description

Openscreen Python SDK

Openscreen is a developer-first platform that enables innovative customer engagement and commerce solutions using QR Codes. Additional information on using the Openscreen python SDK can be found in the developer documentation.

Requirements

You will need your Openscreen account key and secret to get started. If you do not have an Openscreen account, you can sign-up for free here.

Installation

pip3 install openscreen

Getting Started

Openscreen authenticates your API requests using your account's API key and API secret key. You will also need the ID of the project you wish to work with. Your API key, secret key and project ID can all be found in your by logging into your Openscreen dashboard. The following examples demonstrates how to use these values in the SDK to generate your first QR code.

from openscreen import Openscreen, save_qr_image_data_to_file
#Obtain your access_key and secret by logging into your Openscreen dashboard
os  =  Openscreen(access_key='YOUR_ACCESS_KEY', access_secret='YOUR_SECRET_KEY')
#You must create a project and obtain project_id from your Openscreen dashboard
my_asset  =  os.project('YOUR_PROJECT_ID').assets().create({
    'name': 'My First QR Code',
    'description': 'Dynamic QR Code',
    'qr_codes': [
        {
            'intent': 'https://www.openscreen.com',
            'intent_type': 'DYNAMIC_REDIRECT',
            'dynamic_redirect_type': 'NO_SCAN_ID',
            'locator_key_type': 'SHORT_URL',
            'status': 'ACTIVE'
        }
    ]
})
qr_code  =  my_asset.asset.qr_codes[0]
save_qr_image_data_to_file(qr_code.image_data, 'qr_code.png')

Links

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

openscreen-1.3.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openscreen-1.3.1-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file openscreen-1.3.1.tar.gz.

File metadata

  • Download URL: openscreen-1.3.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for openscreen-1.3.1.tar.gz
Algorithm Hash digest
SHA256 48f355696a4bc281f71ef575768e3efa7feb265538130ec6489e3d2ddf51983e
MD5 9253eb47fed1085830649a46f12d16d8
BLAKE2b-256 f0697b8409fce664f2cedc05cc14017462df85d75d5b9ad1c5b2fc597cc93c68

See more details on using hashes here.

File details

Details for the file openscreen-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: openscreen-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for openscreen-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90d915e0df15d941952b119b6ea122a3bbdf515e7a0c6612b3d7c55ecf982912
MD5 1b0a84bea8b3dca40fc21f5f3d835c64
BLAKE2b-256 1899bf79b9d03729635cf242097920792831d765c377c635ec66261f20124e8f

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