Using of CREDITS API in JS (demo)

Requirements

Any OS (Windows 10 is used for the example)

Download CREDITS API files: https://github.com/CREDITSCOM/thrift-interface-definitions

Create a folder to which you are going to copy the JS files, create an empty html file, for example, index.html.

Create application

Put changes to index.html

Add CREDITS API Script Files

Javascript
Copy

Add connection to Thrift and request balance

Javascript
Copy

Check the performance. Call the GetBalance Method.

As the result of the program we see the requested balance: page view:

View via developer tool:

GitHub link: https://github.com/pvl1175/CreditsJSDemo

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard