Bridge API (Bankin) on Rails

143 views Asked by At

I'm connecting to my first API and I do not know where to start. I have tried a few things but it doesn't work. Have you ever connected bankin api on a Ruby on Rails app?

I only have access to curl documentation but don't know how to "convert" it to Rails:

curl 'https://sync.bankin.com/v2/users' \
    -X POST \
    -H 'Bankin-Version: 2019-02-18' \
    -H 'Content-Type: application/json' \
    -H 'Client-Id: MY_CLIENT_ID' \
    -H 'Client-Secret: MY_CLIENT_SECRET' \
    -d $'{
           "email": "[email protected]",
           "password": "password123"
         }'

Thanks !

1

There are 1 answers

2
Fedor On