Published 30 April 2019

Using of Credits API in Python 3 (demo).

Requirements

Requirements

Git is a free and open source distributed version of control system designed to handle everything from small to very large projects with speed and efficiency.

https://git-scm.com/

Python is a programming language that lets you work quickly and integrate systems more effectively.

https://www.python.org/

The Apache Thrift software framework is designed for development of scalable cross-language services. It combines a software stack with a code generation engine in order to build services that interact efficiently and seamlessly with C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, OCaml and Delphi and other languages.

https://thrift.apache.org/

Preparing

Preparing

In this string, you should write your public key

publicKey = '[your public key]'

In this string, you should write the IP address of your running node

tr = TSocket('[your node’s IP address]', 9090)

Using:

    1. git clone https://github.com/CREDITSCOM/Examples, next use the folder ./API/CreditsPythonApiDemo
    2. Windows
      1. build-windows.cmd
      2. runme.cmd
    3. Linux
      1. build-linux.sh
      2. runme.sh

 

The result in Windows

The result in Windows

Setting-up

Run

 

The result in Linux

The result in Linux

Setting-up

Run

Votes 1, average rating 5

Contents