Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.tmyroadctfig:icloud4j

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.tmyroadctfig:icloud4j

A library for accessing Apple's iCloud API

  • 1.6
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

iCloud4j is a Java port of the PyiCloud library. It provides a means for Java applications to use iCloud web services. It is licenced under the Apache 2.0 licence.

Authentication

When the account isn't protected using two-factor authentication, authentication can be down by supplying a simple username/password pair:

iCloud = new ICloudService("client-id");
iCloud.authenticate("user@example.com", "password".toCharArray());

#Devices

A list of devices linked to the iCloud account can be retrieved via the 'FindMyIPhoneService':

FindMyIPhoneService findMyIPhoneService = new FindMyIPhoneService(iCloudService);
List<AppleDevice> devices = findMyIPhoneService.getDevices();

#Ubiquity (File Storage)

The iCloud Ubiquity file storage can be browsed by creating a new instance of the 'UbiquityService', and then calling methods on each node from there:

UbiquityService ubiquityService = new UbiquityService(iCloudService);
UbiquityNode rootNode = ubiquityService.getRoot();
List<UbiquityNode> childrenNode = root.getChildren();

File data can be streamed into an output stream:

OutputStream outputStream;
UbiquityNode child = folder.getChildren().get(0);
if ("file".equals(child.getType()) {
    child.downloadFileData(outputStream);
}

FAQs

Package last updated on 30 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc