4 ms·
What is this curl script that calls out to Find My iPhone... I'm surprised that the web api is trivial enough to script but would love to use it.
by kingnight 11y ago
What is this curl script that calls out to Find My iPhone...
I'm surprised that the web api is trivial enough to script but would love to use it.
- jzig 11y agoAgreed that was probably the most interesting tidbit for me to read in the article. I never considered using Slack integrations for personal use cases but it was nice to read about it here.
- zrail 11y agoIt's not really scriptable, but if you look at the network traffic you can "copy as curl" one of the URLs that pop up as you're playing with "Find My Friends" on icloud.com and paste it into a terminal. It will return a JSON blob with geo information of all of your friends. I don't know how long the cookie that "copy as curl" grabs lasts, but if it's long-lived I can absolutely see dropping it into a little script and feeding the lat/long into a static Google Maps tile URL.
- kingnight 11y agoRight on. I would have figured that iCloud would have one of those iterating cookies (I have no idea what it's really called) where each request iterates the request-data of each subsequent http call so a copy curl wouldn't work. Very cool automation.
- fjallstrom 11y agothere are loads of github repos for this, i just grabbed one and was on my way.
- jzig 11y agoI was so intrigued with the idea of this, and didn't quite find anything I liked, that I whipped up a javascript version of this for use later. It's minimal at the moment, but it works: https://github.com/jziggas/node-icloud https://github.com/jziggas/node-icloud