-
-
Save davidlesches/d09a1d56fd88d1abe8bc to your computer and use it in GitHub Desktop.
Yodlee and Rails Implementation, Part 3: Forms - app/models/yodlee/bank.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Yodlee | |
class Bank < Base | |
def initialize bank | |
@bank = bank | |
end | |
def content_service_id | |
@bank.content_service_id | |
end | |
def form opts = {} | |
@form ||= Yodlee::Form.new(opts.merge({ fields: login_requirements })).render | |
end | |
def login_requirements token | |
query({ | |
:endpoint => '/jsonsdk/ItemManagement/getLoginFormForContentService', | |
:method => :POST, | |
:params => { | |
:cobSessionToken => cobrand_token, | |
:contentServiceId => content_service_id | |
} | |
}) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shouldn't have a parameter as the token is auto loaded (and this will throw an exception as the forms will call it without the token parameter).
PS: Love the posts!!