GithubHelp home page GithubHelp logo

form3api's Introduction

Form3 Sample client execution code

This is my first Go program. This is a sample project that is used to test form3 client API library. https://github.com/kayestee/f3_client. Clone the project to your local. git clone https://github.com/kayestee/form3interviewapi.git

Instructions

  • Include github.com/kayestee/f3_client in your go.mod file as require dependencies.
  • And run below cmd to get the latest client API from within sampleclient folder. go mod download

Running in docker

To run the sampleclient folder in docker execute the docker-compose command inside docker folder.

cd docker

docker-compose -f docker-compose.yml up

The tests results will be logged to the console log.

API's list

  • The sample go file uses go test package to demonstrate the form3 client API endpoints Create, Fetch and Delete.

  • The test results are logged to the console. This sample just prints each test result as they are run and not a report.

  • Here is a sample JSON for create API request:

  "data": {
    "id": "{{random_guid}}",
    "organisation_id": "{{organisation_id}}",
    "type": "accounts",
    "attributes": {
       "country": "GB",
        "base_currency": "GBP",
        "bank_id": "400302",
        "bank_id_code": "GBDSC",
        "account_number": "10000004",
        "customer_id": "234",
        "iban": "GB28NWBK40030212764204",
        "bic": "NWBKGB42",
        "account_classification": "personal",
        "name" : ["Test Account"]
    }
  }
}

Fetch and Delete uses the account Id created from the above create API call.

Reference:: https://www.api-docs.form3.tech/api/tutorials/getting-started/create-an-account/bank-accounts-at-form3

form3api's People

Contributors

kayestee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.