Published 3 June 2019

Using of Credits API in C # (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/

.NET is a free, cross-platform, open source developer platform designed to build many different types of applications. With .NET, you can use multiple languages, editors, and libraries to build for web, mobile, desktop, gaming, and IoT.

https://dotnet.microsoft.com/download

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

var publicKey = “[your public key]

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

using (var transport = new TSocket("[your node’s IP address]", 9090))

Using:

    1. git clone https://github.com/CREDITSCOM/Examples, next use the folder ./API/CreditsCSharpDemo
    2. Windows
      1. build-windows.cmd
      2. run.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 0, average rating 0

Contents