I am totally new in phoenix, elixir, and ecto. I have been studying for a week about basics and all, so far I’m quite amazed and confused at the same time. Anyway, my problem is this, I have a curl request which is:
I want to use the values of the variables “ticket”, “ver” and “os” as an input in my elixir/ecto script which will query in a remote database. (values is changing each request)
I’m sorry for my question if its a little confusing. Please feel free to ask questions so that I can clarify things. And also I want to know it it truly possible.
Any suggestions, help, links and ideas are welcome. I want to eagerly learn this. Thank you.
While it is possible to use curl from Elixir directly, it seems like what you actually want to do, is to perform a remote HTTP request and read the results.
Instead of manually using curl, I suggest using a HTTP client library such as HTTPoison, which does much of the request/response parsing and error handling for you.