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

Question - not an issue. #2

Open
everSin opened this issue May 29, 2017 · 1 comment
Open

Question - not an issue. #2

everSin opened this issue May 29, 2017 · 1 comment

Comments

@everSin
Copy link

everSin commented May 29, 2017

Hi there,
my question is a little bit offtopic and I'm not sure which direction to go. My goal is to translate your API into Swift, to use with in macOS / Linux based Software with a Swift code base.

Can you tell me how you went about, building this API from scratch?
(sorry for writing via issues, didn't find any other means of contacting you)

cheers,
S.

@angelocarbone
Copy link
Owner

Hi @everSin and sorry for the late in response.
Yep is it possible to translate the code in Swift but I recall you that there are many pattern to integrate python code in Swift, a simple google search will help you. Otherwise, if you are not satisfied, you can rewrite the code in Swift opening socket/http request using https/wss string contained in pyiqoapi.py:

self.https_url = "https://{host}/api".format(host=self._hostname)
self.wss_url = "wss://{host}/echo/websocket".format(host=self._hostname)

I hope this help you.

If you have other questions or are not satisfied to response, please don't esitate to contact me.

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

No branches or pull requests

2 participants