Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A sample python script to demonstrate the usage of Poynt Cloud APIs

Notifications You must be signed in to change notification settings

svedule/python-sample

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poynt API - Python Sample

A simple Python sample demonstrating the usage of Poynt Cloud APIs.

Installing

$ sudo pip install PyJWT
$ sudo pip install cryptography
$ sudo pip install requests
$ sudo pip install rsa
$ sudo pip install PIL

Usage

./src/PoyntAPI.py

Note that you might need to give executable permissions to the file or you can just run:

python src/PoyntAPI.py

Optional args:

  • -v for verbose logging
  • -e ci or live to switch between live and ci environments

NOTE: Default configs are provided to help you quickly run and see how this works. Please update config/poynt.ini with your application settings so you have better control on your application and test business data.

If the script fails with requests.exceptions.ConnectionError: ('Connection aborted.', error(54, 'Connection reset by peer')) you may need to update your python installation to support TLS 1.2. If you use Homebrew, follow these steps:

  1. brew update
  2. brew install openssl
  3. brew link openssl --force
  4. brew install python --with-brewed-openssl

Once done run which python in Terminal and check the python script to make sure the path to your python binary matches (i.e. #!/usr/bin/python or #!/usr/local/bin/python)

About

A sample python script to demonstrate the usage of Poynt Cloud APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.