I am looking for an API

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

I am looking for an API

Naomi
Dear all,

To develop a small native application in Swift, i need a REST API
that tells the application, in real time, the url of the browser ( Chrome if possible, otherwise Firefox, Safari at worst ) that is on the terminal where this application is installed.

Unfortunately, i didn't find this API on internet.

Do you know if this API exists or do you know where can i find it ?

Thank you.

Best regards,

Naomi




--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/f42c9517-1deb-482e-9cd0-7eb2a3142c4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: I am looking for an API

Kevin Greene
I'm confused. So you're building an app for iPhone? That app wants to somehow get "the url of the browser". What do you mean by that? Also, what do you mean by "the terminal where this application is installed"? Do you mean the phone that the app is installed on? Or something else?

On Thu, Jun 18, 2015 at 12:11 PM, Naomi <[hidden email]> wrote:
Dear all,

To develop a small native application in Swift, i need a REST API
that tells the application, in real time, the url of the browser ( Chrome if possible, otherwise Firefox, Safari at worst ) that is on the terminal where this application is installed.

Unfortunately, i didn't find this API on internet.

Do you know if this API exists or do you know where can i find it ?

Thank you.

Best regards,

Naomi




--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/f42c9517-1deb-482e-9cd0-7eb2a3142c4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/CAEY8wq7-SoZFqRgZMosgWXSGFcHaYQ4B7HURJpQbTOcg7ezbSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: I am looking for an API

Jens Alfke
In reply to this post by Naomi

On Jun 18, 2015, at 12:11 PM, Naomi <[hidden email]> wrote:

To develop a small native application in Swift, i need a REST API that tells the application, in real time, the url of the browser ( Chrome if possible, otherwise Firefox, Safari at worst ) that is on the terminal where this application is installed.

A browser doesn’t have a URL. A browser connects to resources that have URLs.

It sounds like you want to write an application that can display content in a web browser? If so, the application will need to include a small HTTP server that will listen for connections on a TCP port, and then the user would have their browser go to the URL corresponding to that listener; something like http://localhost:54321/ .

—Jens

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/C1CC5426-958F-42F7-9912-96287F0DB0C7%40mooseyard.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: I am looking for an API

Naomi
Dear Kevin, Dear Jens,

You are right. I made mistakes. I'm sorry.

I would like to build an application

1) for all Apple devices : iMac ; IPad ; IPhone ; ...

2) that can display content in a web browser some informations relating to the informations contained in each web pages visited by the user of this application.

So, when a browser is connected to resources, something must indicate to this application, in real time, the URLs of this resources.

Consequence : the application appears in the browser some informations relating to the viewed web page.

Naomi


Le jeudi 18 juin 2015 21:56:48 UTC+2, Jens Alfke a écrit :

On Jun 18, 2015, at 12:11 PM, Naomi <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="PnBPZ7v_xoMJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">naomija...@...> wrote:

To develop a small native application in Swift, i need a REST API that tells the application, in real time, the url of the browser ( Chrome if possible, otherwise Firefox, Safari at worst ) that is on the terminal where this application is installed.

A browser doesn’t have a URL. A browser connects to resources that have URLs.

It sounds like you want to write an application that can display content in a web browser? If so, the application will need to include a small HTTP server that will listen for connections on a TCP port, and then the user would have their browser go to the URL corresponding to that listener; something like <a href="http://localhost:54321/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A54321%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNE9MCOcwCNeDW4XmtalTtgMar-aLg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A54321%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNE9MCOcwCNeDW4XmtalTtgMar-aLg';return true;">http://localhost:54321/ .

—Jens

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/b1313e8d-5704-49ab-9ae9-dc75b0599892%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: I am looking for an API

Naomi
Dear Kevin, Dear Jens,

You are right. I made mistakes. I'm sorry.

I would like to build an application

1) for all Apple devices : iMac ; IPad ; IPhone ; ...

2) that can display in a web browser some informations relating to the informations contained in each web pages visited by the user of this application.

So, when a browser is connected to resources, something must indicate to this application, in real time, the URLs of this resources.

Consequence : the application appears in the browser some informations relating to the viewed web page.

Naomi

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/b089d4c9-b5cf-4fcd-b0d0-9b365d7149af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: I am looking for an API

Naomi
In reply to this post by Jens Alfke
Dear Kevin, Dear Jens,

You are right. I made mistakes. I'm sorry.

I would like to build an application

1) for all Apple devices : iMac ; IPad ; IPhone ; ...

2) that can display in a web browser some informations relating to the informations contained in each web pages visited by the user of this application.

So, when a browser is connected to resources, something must indicate to this application, in real time, the URLs of this resources.

Consequence : the application appears in the browser some informations relating to the viewed web page.

Naomi

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/5943c997-8337-4d1e-8799-3beb54cb0e32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: I am looking for an API

Naomi
It seems to me that the approach that I seek is as follows :

1) to listen TCP port to identify the IP
address to which the browser connects to time t ;

In this case, I need to find a website or a book relating to the "network interaction" with the Swift language.

Do you know this website or this book ?

2) to convert this IP address in URL ;

3) to communicate this URL to the application.




Le jeudi 18 juin 2015 22:46:01 UTC+2, Naomi a écrit :
Dear Kevin, Dear Jens,

You are right. I made mistakes. I'm sorry.

I would like to build an application

1) for all Apple devices : iMac ; IPad ; IPhone ; ...

2) that can display in a web browser some informations relating to the informations contained in each web pages visited by the user of this application.

So, when a browser is connected to resources, something must indicate to this application, in real time, the URLs of this resources.

Consequence : the application appears in the browser some informations relating to the viewed web page.

Naomi

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/741711dc-fae6-4730-bc34-89af2d18c0d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: I am looking for an API

Naomi
In reply to this post by Naomi
It seems to me that the approach that I seek is as follows :

1) to listen TCP port to identify the IP
address to which the browser connects to time t ;

In this case, I need to find a website or a book relating to the "network interaction" with the Swift language.

Do you know this website or this book ?

2) to convert this IP address in URL ;

3) to communicate this URL to the application.

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/f7143680-d150-4ecf-95da-a8819d46fbc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: I am looking for an API

Kevin Greene
It sounds like you want to build an application that tracks a user's browsing history?

On iOS each app is sandboxed, meaning that your app has no way of interacting with other apps like you described. You can't build an app that tracks a user's browsing history in the chrome app. It's simply not possible on iOS, for very good reasons. 

In either case, this is not really related to the swift language, so it's off topic for this mailing list.

On Thursday, June 18, 2015, Naomi <[hidden email]> wrote:
It seems to me that the approach that I seek is as follows :

1) to listen TCP port to identify the IP
address to which the browser connects to time t ;

In this case, I need to find a website or a book relating to the "network interaction" with the Swift language.

Do you know this website or this book ?

2) to convert this IP address in URL ;

3) to communicate this URL to the application.

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;swift-language%2Bunsubscribe@googlegroups.com&#39;);" target="_blank">swift-language+unsubscribe@....
To post to this group, send email to <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;swift-language@googlegroups.com&#39;);" target="_blank">swift-language@....
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/f7143680-d150-4ecf-95da-a8819d46fbc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/CAEY8wq6JEsqgW5263bNMT7Qs_P7yriHJVj5yEZCwx_E3vV57tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: I am looking for an API

Jens Alfke
In reply to this post by Naomi

On Jun 18, 2015, at 2:45 PM, Naomi <[hidden email]> wrote:

1) to listen TCP port to identify the IP address to which the browser connects to time t ;

Sorry, there isn’t anything that will do that. It would be a privacy problem because it would allow arbitrary apps (and even code on other computers, since you’re asking for a network socket to be exposed!) to snoop on your web browsing.

On Mac OS you can write a Safari or Chrome extension that runs inside the browser and can look at what pages are loaded, and the contents of those pages. Maybe that’s the sort of thing you’re looking for. (I don’t think you can write these in Swift though, only JavaScript.)

On iOS browser extensions aren’t supported, so you can’t do anything like this.

Anyway, this is not a Swift language topic, so it’s not relevant to this list — you’d be better off asking for help on Apple’s or Google’s developer forums for browser extension development.

—Jens

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/5E466C53-E72F-4B50-88EB-04A819272F7D%40mooseyard.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: I am looking for an API

Naomi
Dear Jens,

Thank you for your answer.

I will follow your advices.

Best regards

Naomi

Le vendredi 19 juin 2015 00:09:40 UTC+2, Jens Alfke a écrit :

On Jun 18, 2015, at 2:45 PM, Naomi <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="prY5jJ5GXTQJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">naomija...@...> wrote:

1) to listen TCP port to identify the IP address to which the browser connects to time t ;

Sorry, there isn’t anything that will do that. It would be a privacy problem because it would allow arbitrary apps (and even code on other computers, since you’re asking for a network socket to be exposed!) to snoop on your web browsing.

On Mac OS you can write a Safari or Chrome extension that runs inside the browser and can look at what pages are loaded, and the contents of those pages. Maybe that’s the sort of thing you’re looking for. (I don’t think you can write these in Swift though, only JavaScript.)

On iOS browser extensions aren’t supported, so you can’t do anything like this.

Anyway, this is not a Swift language topic, so it’s not relevant to this list — you’d be better off asking for help on Apple’s or Google’s developer forums for browser extension development.

—Jens

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/b06b75a5-4bc1-4df6-b509-2926731828c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.