Sha256: d2d79879cfdfc42eac75d4da008d7139dcf947ed1c26386468d9339d31f613ba
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
module Skydrive # The basic operations module Operations # Your home folder # @return [Skydrive::Folder] def my_skydrive response = get("/me/skydrive") end # Your camera_roll folder # @return [Skydrive::Folder] def my_camera_roll response = get("/me/skydrive/camera_roll") end # Your documents # @return [Skydrive::Folder] def my_documents response = get("/me/skydrive/my_documents") end # Your default album # @return [Skydrive::Photos] def my_photos response = get("/me/skydrive/my_photos") end # Your public documents # @return [Skydrive::Folder] def my_public_documents response = get("/me/skydrive/public_documents") end # Your shared items # @return [Skydrive::Collection] def my_shared_stuff response = get("/me/skydrive/shared") end # Your recent documents # @return [Skydrive::Collection] def recent_documents response = get("/me/skydrive/recent_docs") end # Your total and remaining storage quota # @return [Hash] contains keys quota and available def storage_quota response = get("/me/skydrive/quota") end # Delete an object with given id def delete_object object_id response = delete("/#{object_id}") end # Create a new folder # @param [String] path the path where the new folder should be created # @param [Hash] options the additional parameters to be passed # @option options [String] :name required, the name of the new folder # @option options [String] :description the description about the folder # @return [Skydrive::Folder] the new folder def create_folder path, options={} response = post("/#{path}", options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skydrive-0.0.1 | lib/skydrive/operations.rb |