Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you have a basic example for Elixir or Erlang? REST would be fine but Websockets better #24

Closed
vegabook opened this issue Mar 16, 2018 · 4 comments

Comments

@vegabook
Copy link

vegabook commented Mar 16, 2018

I have tried using HTTPoison, for example:

iex(10)> HTTPoison.get "http://www.ibm.com"                                                    
{:ok,
 %HTTPoison.Response{
   body: "",
   headers: [
     {"Server", "AkamaiGHost"},
     {"Content-Length", "0"},
     {"Location", "https://www.ibm.com/"},
     {"Date", "Fri, 16 Mar 2018 23:15:37 GMT"},
     {"Connection", "keep-alive"},
     {"X-Content-Type-Options", "nosniff"},
     {"X-XSS-Protection", "1; mode=block"},
     {"Content-Security-Policy", "upgrade-insecure-requests"}
   ],
   request_url: "http://www.ibm.com",
   status_code: 301
 }}

No problemo. But:

iex(10)> HTTPoison.get "http://v1/exchangerate/BTC?apikey=MYAPIKEY"
{:error, %HTTPoison.Error{id: nil, reason: :nxdomain}}

iex(11)> HTTPoison.get "/v1/exchangerate/BTC?apikey=MYAPIKEY"      
** (CaseClauseError) no case clause matching: []
    (hackney) /home/tbrowne/code/crypto/deps/hackney/src/hackney_url.erl:192: :hackney_url.parse_netloc/2
    (hackney) /home/tbrowne/code/crypto/deps/hackney/src/hackney.erl:331: :hackney.request/5
    (httpoison) lib/httpoison/base.ex:439: HTTPoison.Base.request/9

Do you have something for Erlang or Elixir in the pipeline? I know for sure Erlang is used quite heavily in finance, and Elixir is gaining traction. Obviously I have changed MYAPIKEY to my real API key.

@vegabook vegabook changed the title Do you have a basic example for Elixir or Erlang? Rest would be fine but Websockets better Do you have a basic example for Elixir or Erlang? REST would be fine but Websockets better Mar 17, 2018
@Svisstack
Copy link
Contributor

@Svisstack
Copy link
Contributor

We are overloaded with the work and actually, Erlang or Elixir examples in SDK are not highly requested features, we hope that someone will PR these languages into the repo.

@Svisstack
Copy link
Contributor

@vegabook Unfortunately implementing SDK in Erlang or Elixir is not on our roadmap for next 3 months. We are implementing custom features only for the Enterprise plan agreements.

@vegabook
Copy link
Author

I will speak to your enterprise reps for costing analysis. Thank you for your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants