albeebe / PHP-FindMyiPhone

PHP class to locate, play sounds, and lock iOS devices
Other
79 stars 49 forks source link

Updated class for more simple API url #5

Closed beinnlora closed 7 years ago

beinnlora commented 7 years ago

Apple iCloud API URL appears to have changed around ~11 Jan 2017, to a more simple syntax that no longer returns or requires X-Apple-MMe-Host and X-Apple-MMe-Scope session headers. Amended urls defined in class php and removed references to these headers.

beinnlora commented 7 years ago

Code can now be simplified somewhat by addition of variable $host="https://fmipmobile.icloud.com/fmipservice/device/" and subsequent $url=$this->host.$this->username."/initClient"; etc if someone has the energy. @albeebe thanks for the code.

albeebe commented 7 years ago

Thank you