createShare
and fetchShare
methods, defined in the PCAPISDK
class, now include links to shared files in their responses.PCAPISDK
class now allow you to create, update, and delete contacts:createContact
- allows you to create a new contact.deleteContact
- allows you to delete a contact.updateContact
- allows you to update a contact.Favorites methods, defined in the PCAPISDK
class now allow you to create, delete, and remove favorites:
deleteFavorites
- deletes favorite tag.getFavorites
- retrieves favorite files and folders.setFavorites
- sets a favorite tag for a file or folder.fetchContacts
API, defined in the PCAPISDK
class, has been enhanced with new query parameters to enable pagination and search:
count
page
query
sort
PCAPISDK
class, allow you to create, delete, and rename virtual folders:createVirtualFolder
- creates a virutal folder.deleteVirtualFolder
- deletes a virtual folder.renameVirtualFolder
- renames a virtual folder.PCAPILogger
class allow you to start, stop, add, and delete log levels:addLogger
- adds a log.removeAllLogger
- removes all loggs.removeLogger
- removes specified log.sharedLogger
- returs shares logg.startLogging
- starts all managed logs.stopLogging
- stops all managed logs.fetchAccountInfo
method, defined in the PCAPISDK
class, has been enhanced to show in the response the mobile phone number for users who log on with their mobile phone number.fetchAccessToken
method has been defined in the PCAPISDK
class, to allow users to retrieve the access token. This method is also supported by iOS Keppler File Manager.Tags methods have been defined in the PCAPISDK class and are now supported by the iOS Hubble Media Browser:
deleteTags
- deletes tags for a specified file or folder.getTags
- lists tags for a specified file or folder.setTags
- updates tags for a specified file or folder.Share methods have been defined in the PCAPISDK class and are now supported by the iOS Hubble Media Browser:
createShare
- creates shares.deleteShare
- deletes shares.fetchShare
- lists shares.Media methods have been defined in the PCAPISDK class:
getArtistsWithCompletionHandler:
- retrieves artists.getAudioAlbumsWithCompletionHandler:
- retrieves audio albums.getAudioPlaylistsWithCompletionHandler:
- retrieves music playlists.getAudiosWithCompletionHandler:
- retrieves audio files.getDocumentsWithCompletionHandler:
- retrieves document files.getGenresWithCompletionHandler:
- retrieves genre information.getPhotoAlbumWithCompletionHandler:
- retrieves photo albums.getPhotosWithCompletionHandler:
- retrieves image files.getVideosWithCompletionHandler:
- retrieves video files.The first release of the iOS SDK supports the following methods that have been defined in the PCAPISDK class:
Authentication and Authorization
authenticateClient
- this API is used to present OAuth 2.0 login screen. Based on the response from OAuth 2.0 login, the completion handler returns either the authorization code or an error message. You can exchange the authorization code for an access token and a refresh token. The access token will remain in the keychain until it expires or the user logs out.isUserLoggedIn
- returns YES if the user has an access tokenlogout
- logs the user out from the current session. Removes the access token that is stored in keychain. Returns YES if the token is successfully removed.refreshSession
- refreshes current session. Once the session has been refreshed, the authentication credentials are returned with the completion block.Account Information
fetchAccountInfo
- retrieves account information for a user’s account.Contacts
fetchContacts
- retrieves contacts.File and Folder Operations
copy
- creates a copy of a file or folder.createFolder
- creates a folder at a given path.deletePath
- deletes a file or a folder at a specified path.doFullSync
- calls GET /fullview
API to get changes from the server, then merges the changes with the local databasedownloadFile
- downloads a file. The file is downloaded to a temporary directory and is removed once the api which downloaded the file is released. You should move the file to a different location in the completion callback.downloadThumbnail
- downloads thumbnail image of any file.fetchMetadata
- retrieves the metadata of a folder.move
- moves a file or folder.rename
- renames a file or a folder.search
- searches for any resource in local database.uploadFile
-uploads a file to a folder.Playlists
addPlaylistItems
- adds items to a playlist.createPlaylist
- creates a playlist.deletePlaylist
- deletes a playlists.deletePlaylistItem
- deletes an item in a playlist.editPlaylistsDefinition
] - allows you to edit playlist definition.editPlaylist
- allows you to edit a playlist.getPlaylist
- retrieves a list of user’s playlists.getPlaylistContent
- retrieves content of a playlist.getPlaylistDefinitioin
- retrieves playlist definition.GetPlaylistItems
- retrieves the information on all items for a given playlist.Trash Can
deleteTrash
- permanently deletes all files and folder that are in a deleted state.fetchTrash
- retrieves a list of files and folders that have been deleted.restore
- restores files and folders that are marked as deleted.Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.