tiagopog / iugu-elixir Goto Github PK
View Code? Open in Web Editor NEWElixir client for the Iugu's API
Elixir client for the Iugu's API
I am not really sure if it's indeed a Subscription field. But the Iugu API docs suggests so.
What do you think? I'm trying to use it.
It's using an older version of httpoison, which conflicts with the service's umbrella dependency tree:
$ mix deps.get
* Updating iugu (https://github.com/b2beauty/iugu-elixir.git)
Resolving Hex dependencies...
Failed to use "httpoison" (version 0.13.0) because
deps/beautydate_api/mix.exs requires ~> 1.0
deps/iugu/mix.exs requires ~> 0.13
** (Mix) Hex dependency resolution failed, change the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, "~> 1.0", override: true}
So I updated it in the branch upgrade/httpoison_1.0
and used it: {:iugu, github: "b2beauty/iugu-elixir", branch: "upgrade/httpoison_1.0"}
The mix deps.gets
finished just fine, but iex -S mix run
returns this:
$ iex -S mix run
Erlang/OTP 20 [erts-9.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
==> iugu
Compiling 7 files (.ex)
== Compilation error in file lib/resources/customer.ex ==
** (ArgumentError) struct fields definition must be list, got: nil
(elixir) lib/kernel/utils.ex:73: Kernel.Utils.defstruct/2
lib/resources/customer.ex:6: (module)
(stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
could not compile dependency :iugu, "mix compile" failed. You can recompile this dependency with "mix deps.compile iugu", update it with "mix deps.update iugu" or clean it with "mix deps.clean iugu"
Any tip?
A client lib is required so we can access/manipulate some IUGU's resources from Beauty Date's Elixir microservices.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.