Skip to content

petitout/ifog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

ifog

Go client for iCloud rest APIs

Only device info retrieval is implemented. I plan to add photo API later (currently the icloud API has been deactivated by Apple ...)

Example :

	session := ifog.NewSession()
	var err = session.Login(login.RequestBody{"myAppleId", "myPassword"})
	if err != nil {
		panic(err)
	}
	err = session.PopulateDevices()
	if err != nil {
		panic(err)
	}
	myDevice := session.Devices[0]
	fmt.Println("My " + myDevice.DeviceClass + " is located at : " + myDevice.Location.String())

Printing :

    My iPhone is located at : 43.107062, 0.723592

About

Go client for iCloud rest APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages