Skip to content

Commit

Permalink
Merge pull request #12 from levanto-financial/0-1-3
Browse files Browse the repository at this point in the history
Fixed conflicting function signatures in Yodlee.Providers.search
  • Loading branch information
mike-north committed Mar 8, 2016
2 parents eb559e3 + a368e6d commit 985a16d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions lib/yodlee/provider.ex
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
defmodule Yodlee.Provider do

def search(cob_session_token, params, cobrand_name \\ Yodlee.default_cobrand_name) do
do_search cob_session_token, params, cobrand_name
end

defp do_search(cob_session_token, %{"name" => name}, cobrand_name) do
def search(cob_session_token, name, cobrand_name \\ Yodlee.default_cobrand_name) do
body = %{"name" => name}
Yodlee.make_authenticated_request(cob_session_token, "get", "#{cobrand_name}/v1/providers", body)
end

defp do_search(cob_session_token, %{"skip" => skip, "top" => top}, cobrand_name) do
defp search_by_params(cob_session_token, %{"skip" => skip, "top" => top}, cobrand_name \\ Yodlee.default_cobrand_name) do
body = %{"skip" => skip || 0, "top" => top || 500}
Yodlee.make_authenticated_request(cob_session_token, "get", "#{cobrand_name}/v1/providers", body)
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Yodlee.Mixfile do

def project do
[app: :yodlee,
version: "0.1.2",
version: "0.1.3",
elixir: "~> 1.1",
description: "Yodlee API",
package: package,
Expand Down

0 comments on commit 985a16d

Please sign in to comment.