Closed houshuang closed 9 years ago
I think your error is just the typo "request_body", where it should be "request". I have corrected this in the README, but the point is that the first line assigns a variable, and the second processes it. Sorry for the typo.
Note, remember this project doesn't import HTTPoison, so be sure to setup some new project and add it to your dependencies for testing the above. Otherwise you will start to get errors about HTTPoison not being found. I'm using this wrapper syntax in anger for a real project - you can have HTTPoison do quite a lot of fixup for you!
I defined the XMLRPC module like specified, and tried the example in iex: