nordigen-ruby 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +8 -8
- data/lib/nordigen-ruby.rb +1 -1
- data/lib/nordigen_ruby/version.rb +1 -1
- data/nordigen.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7007af42e82905ff97e0c5dbf1dc3647019486589986a5ee51db005dfe1e82c4
|
4
|
+
data.tar.gz: ddc7320cda8140c66976062e9377f77e403fafa5081fd94d7d32dc879062d733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f85ae5fd50036b9c19db2e93b2128dcca9b218c0d419ae035906d6c1f2fca96b5c36aa24fb41fd9fc6ea8d6f5896ad9ec0bd1e399e0ccea3f0aa432cb220afa3
|
7
|
+
data.tar.gz: 8f862f8d8acd0ccdb56aa235fb6699a9f28acadab44e66261e4d835ff4664459d9acbf81d7a2dcc0d026d510bd3c5a112707b8819b3f8f8f0bc49e104708240f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# Nordigen Ruby Library
|
2
2
|
|
3
|
-
This is official Ruby client library for [
|
3
|
+
This is official Ruby client library for [GoCardless Bank Account Data](https://gocardless.com/bank-account-data/).
|
4
4
|
|
5
|
-
For a full list of endpoints and arguments, see the [docs](https://
|
5
|
+
For a full list of endpoints and arguments, see the [docs](https://developer.gocardless.com/bank-account-data/quick-start-guide).
|
6
6
|
|
7
|
-
Before starting to use API you will need to create a new secret and get your `SECRET_ID` and `SECRET_KEY` from the [
|
7
|
+
Before starting to use API you will need to create a new secret and get your `SECRET_ID` and `SECRET_KEY` from the [GoCardless Bank Account Data Portal](https://bankaccountdata.gocardless.com/user-secrets/).
|
8
8
|
|
9
9
|
## Requirements
|
10
10
|
|
@@ -31,7 +31,7 @@ Example code can be found in `main.rb` file and Ruby on Rails example applicatio
|
|
31
31
|
require 'securerandom'
|
32
32
|
require 'nordigen-ruby'
|
33
33
|
|
34
|
-
# Get secret_id and secret_key from
|
34
|
+
# Get secret_id and secret_key from bankaccountdata.gocardless.com/user-secrets/ portal and pass to NordigenClient or load from .env file
|
35
35
|
client = Nordigen::NordigenClient.new(
|
36
36
|
secret_id: "SECRET_ID",
|
37
37
|
secret_key: "SECRET_KEY"
|
@@ -62,7 +62,7 @@ id = "REVOLUT_REVOGB21"
|
|
62
62
|
# Returns requisition_id and link to initiate authorization with a bank
|
63
63
|
init = client.init_session(
|
64
64
|
# redirect url after successful authentication
|
65
|
-
redirect_url: "https://
|
65
|
+
redirect_url: "https://gocardless.com",
|
66
66
|
# institution id
|
67
67
|
institution_id: id,
|
68
68
|
# a unique user ID of someone who's using your services, usually it's a UUID
|
@@ -88,10 +88,10 @@ After successful authorization with a bank you can fetch your data (details, bal
|
|
88
88
|
# Get account id after you have completed authorization with a bank.
|
89
89
|
requisition_data = client.requisition.get_requisition_by_id(requisition_id)
|
90
90
|
# Get account id from list
|
91
|
-
account_id =
|
91
|
+
account_id = requisition_data["accounts"][0]
|
92
92
|
|
93
93
|
# Instantiate account object
|
94
|
-
account = client.
|
94
|
+
account = client.account(account_id)
|
95
95
|
|
96
96
|
# Fetch account metadata
|
97
97
|
meta_data = account.get_metadata()
|
@@ -116,4 +116,4 @@ bundle exec rake test
|
|
116
116
|
|
117
117
|
## Support
|
118
118
|
|
119
|
-
For any inquiries please contact support at [support@
|
119
|
+
For any inquiries please contact support at [bank-account-data-support@gocardless.com](bank-account-data-support@gocardless.com) or create an issue in repository.
|
data/lib/nordigen-ruby.rb
CHANGED
data/nordigen.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.name = "nordigen-ruby"
|
9
9
|
spec.version = Nordigen::VERSION
|
10
10
|
spec.authors = ["Nordigen Solutions"]
|
11
|
-
spec.email = ["support@
|
11
|
+
spec.email = ["bank-account-data-support@gocardless.com"]
|
12
12
|
spec.summary = "Nordigen client for Ruby"
|
13
13
|
spec.homepage = "https://github.com/nordigen/nordigen-ruby"
|
14
14
|
spec.description = "Nordigen official API client for Ruby"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nordigen-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nordigen Solutions
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
version: '2.5'
|
27
27
|
description: Nordigen official API client for Ruby
|
28
28
|
email:
|
29
|
-
- support@
|
29
|
+
- bank-account-data-support@gocardless.com
|
30
30
|
executables:
|
31
31
|
- console
|
32
32
|
- setup
|
@@ -57,7 +57,7 @@ metadata:
|
|
57
57
|
documentation_uri: https://github.com/nordigen/nordigen-ruby
|
58
58
|
github_repo: https://github.com/nordigen/nordigen-ruby
|
59
59
|
source_code_uri: https://github.com/nordigen/nordigen-ruby
|
60
|
-
post_install_message:
|
60
|
+
post_install_message:
|
61
61
|
rdoc_options: []
|
62
62
|
require_paths:
|
63
63
|
- lib
|
@@ -72,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
rubygems_version: 3.
|
76
|
-
signing_key:
|
75
|
+
rubygems_version: 3.2.15
|
76
|
+
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Nordigen client for Ruby
|
79
79
|
test_files: []
|