{"id":15164355,"url":"https://github.com/dachinat/nextcloud","last_synced_at":"2025-10-25T03:31:05.560Z","repository":{"id":26933610,"uuid":"111957059","full_name":"dachinat/nextcloud","owner":"dachinat","description":"Nextcloud OCS and WebDAV API wrapper for Ruby.","archived":false,"fork":false,"pushed_at":"2024-03-22T15:26:00.000Z","size":139,"stargazers_count":18,"open_issues_count":12,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T05:33:25.849Z","etag":null,"topics":["api-wrapper","nextcloud","nextcloud-ocs","ruby-wrapper","sdk-ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/nextcloud","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dachinat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-11-24T21:33:39.000Z","updated_at":"2024-11-22T06:42:29.000Z","dependencies_parsed_at":"2024-03-22T16:50:44.390Z","dependency_job_id":"790fdeb9-b72f-452c-aead-b05b8935f641","html_url":"https://github.com/dachinat/nextcloud","commit_stats":{"total_commits":34,"total_committers":5,"mean_commits":6.8,"dds":0.3529411764705882,"last_synced_commit":"a500e4459a4f47a263d13be780dfe4dd2e3d361f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dachinat%2Fnextcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dachinat%2Fnextcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dachinat%2Fnextcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dachinat%2Fnextcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dachinat","download_url":"https://codeload.github.com/dachinat/nextcloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238075243,"owners_count":19412298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","nextcloud","nextcloud-ocs","ruby-wrapper","sdk-ruby"],"created_at":"2024-09-27T03:04:33.692Z","updated_at":"2025-10-25T03:31:05.042Z","avatar_url":"https://github.com/dachinat.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem](https://img.shields.io/gem/v/nextcloud.svg?style=flat-square)](https://rubygems.org/gems/nextcloud) [![Travis](https://img.shields.io/travis/dachinat/nextcloud.svg?style=flat-square)](https://travis-ci.org/dachinat/nextcloud) [![Coveralls github](https://img.shields.io/coveralls/github/dachinat/nextcloud.svg?style=flat-square)](https://coveralls.io/github/dachinat/nextcloud) [![Yard Docs](https://img.shields.io/badge/yard-docs-blue.svg?style=flat-square)](http://rubydoc.info/github/dachinat/nextcloud/master)\n\n# Nextcloud Ruby API\n\nWrapper gem for Ruby used for communicating with Nextcloud OCS and WebDAV API endpoints.\n\nThis gem provides features for User provisioning, Group and App management, control of Shares and Federated Cloud\nShares, WebDAV functions for File / Folder creation, removal and other operations.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"nextcloud\"\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install nextcloud\n\n## Usage\n\n#### Initialize with endpoint bundles\n\nTo initialize an OCS client you can look at following example\n\n```\nocs = Nextcloud.ocs(\n  url: \"https://cloud.yourdomain.com\",\n  username: \"your_username\",\n  password: \"your_password\"\n)\n```\n\nAn URL has to be a base of your Nextcloud instance. For API requests, it will be parsed to \n`https://cloud.yourdomain.com/ocs/v2.php/cloud/` or similar.\n\nOnce `ocs` is available you can use following methods to initiate specific classes:\n\n`ocs.user`, `ocs.app`, `ocs.group`, `ocs.file_sharing`\n\nIf you intent to work with WebDAV api you can initialize a client with `webdav`:\n\n```\nwebdav = Nextcloud.webdav(\n  url: \"https://cloud.yourdomain.com\",\n  username: \"your_username\",\n  password: \"your_password\"\n)\n```\n\nYou can also initialize and work with both APIs (useful if credentials are same):\n\n```\nnextcloud = Nextcloud.new(\n  url: \"https://cloud.yourdomain.com\",\n  username: \"your_username\",\n  password: \"your_password\"\n)\n\nocs = nextcloud.ocs\nwebdav = nextcloud.webdav\n```\n\n#### Initialize specific APIs\n\nPreviously described method is recommended, however you can initialize in a different manner.\n\nInitialize OCS Users API:\n\n```\nuser = Nextcloud::Ocs::User.new(url: \"…\", username: \"…\", password: \"…\")\n```\n\nInitialize OCS Groups API:\n\n```\ngroup = Nextcloud::Ocs::Group.new(url: \"…\", username: \"…\", password: \"…\")\n```\n\nInitialize OCS Apps API:\n\n```\napp = Nextcloud::Ocs::App.new(url: \"…\", username: \"…\", password: \"…\")\n```\n\nInitialize OCS File Sharing API:\n\n```\nfile_sharing = Nextcloud::Ocs::FileSharingApi.new(url: \"…\", username: \"…\", password: \"…\")\n```\n\nInitialize WebDAV Directory API:\n\n```\ndirectory = Nextcloud::Webdav::Directory.new(url: \"…\", username: \"…\", password: \"…\")\n```\n\n\u003e When initializing this way, to work with certain objects some circumstances might force you use `set` method.\n\u003e For example if you wish to list members of group admin, using first way you could simply write \n`ocs.group('admin').members`, in this case you will need to use `group.set('admin').members`. There is another way to\nset object of intereset by putting it into initialize arguments, like so \n`Nextcloud::Ocs::Group.new({…credentials}, groupid=\"admin\")` it can be then reset with\n`set`. Corresponding parameter names for other classes are `userid` and `appid`.\n\n### *OCS Api usage*\n\nThese examples assume you have `Nextcloud.ocs` instance or relevant instance of \n`Nextcloud::Ocs::{CLASS_NAME}.new` stored in `ocs` variable.\n\n### User actions\n\n#### Get list of users\n\n```\nusers = ocs.user.all\n# =\u003e [#\u003cNextcloud::Models::User:0x00000104d253c0 @id=\"your_user_1\"\u003e, #\u003cNextcloud::Models::User:0x00000104d1f858 @id=\"your_user_2\"\u003e]\n\nlast_user = user.last\n=\u003e #\u003cNextcloud::Models::User:0x000001042a2ba0 @id=\"your_user_2\"\u003e\n     \nresponse_meta = users.meta\n{\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Get a single user\n\n```\nuser = ocs.user.find(\"your_user_1\")\n# =\u003e #\u003cNextcloud::Models::User:0x00000103964020 @enabled=\"true\", @id=\"your_user_1\", …, @meta={\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\u003e\n```\n\nHaving `user` variable you have access to following attributes:\n\n* enabled\n* id\n* quota\n* email\n* displayname\n* phone\n* address\n* website\n* twitter\n* groups\n* language\n* meta\n\n\nAgain, here you can use `user.meta` to get service response status, code and message.\n\n#### Create an user\n\n```\nmeta = ocs.user.create(\"user3\", \"userPassword1!\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Update an user\n\nYou can update an user attributes with key-value method.\n\nValid keys include:\n\n* quota\n* displayname\n* phone \n* address \n* website\n* twitter\n* password\n\n```\nmeta = ocs.user.update(\"user3\", \"email\", \"new-address@some-domain.com\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Disable user\n\n```\nmeta = ocs.user.disable(\"user3\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Enable user\n\n```\nmeta = ocs.user.enable(\"user3\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Delete user\n\n```\nmeta = ocs.user.destroy(\"user3\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Resend welcome email message\n\n```\nmeta = ocs.user.resend_welcome(\"user3\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n### User group actions\n\n#### Get user groups\n\n```\ngroups = ocs.user(\"user1\").groups\n# =\u003e [\"admin\"]\nmeta = groups.meta \n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\nif you work with initialized User class\n\n```\nuser.set(\"user1\").groups\n```\n\n#### Add user to group\n\n```\nmeta = ocs.user(\"user4\").group.create(\"admin\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\nif you work with initialized User class\n\n```\nuser.set(\"user4\").group.create(\"admin\")\n```\n\n#### Remove user from group\n\n```\nmeta = ocs.user(\"user4\").group.destroy(\"admin\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\nif you work with initialized User class\n\n```\nuser.set(\"user4\").group.destroy(\"admin\")\n```\n\n#### Promote user to group subadmin\n\n```\nmeta = ocs.user(\"user4\").group(\"group1\").promote.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\nif you work with initialized User class\n\n```\nuser.set(\"user4\").group(\"group1\").promote\n```\n\n#### Demote user from group subadmin\n\n```\nmeta = ocs.user(\"user4\").group(\"group1\").demote.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\nif you work with initialized User class\n\n```\nuser.set(\"user4\").group(\"group1\").demote\n```\n\n#### Get user subadmin groups\n\n```\nsubadmin_groups = ocs.user(\"user4\").subadmin_groups\n# =\u003e [\"group1\"]\nmeta = subadmin_groups.meta \n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\nif you work with initialized User class\n\n```\nuser.set(\"user4\").subadmin_groups\n```\n\n### Group actions\n\n#### Get all groups\n\n```\ngroups = ocs.group.all\n# =\u003e [\"admin\", \"group1\", \"group2\"]\nmeta = groups.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Search for a group\n\n```\ngroups = ocs.group.search(\"admin\")\n# =\u003e [\"admin\"]\nmeta = groups.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Create a new group\n\n```\nmeta = ocs.group.create(\"group3\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Get group members\n\n```\nmembers = ocs.group(\"admin\").members\n# =\u003e [\"user1\", \"user2\"]\nmeta = members.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\nif you work with initialized Group class\n\n```\ngroup.set(\"admin\").members\n```\n\n#### Get group subadmins\n\n```\nmembers = ocs.group(\"group1\").subadmins\n# =\u003e [\"user1\", \"user2\", \"user3\"]\nmeta = members.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\nif you work with initialized Group class\n\n```\ngroup.set(\"group1\").subadmins\n```\n\n#### Delete a group\n\n```\nmeta = ocs.group.destroy(\"group3\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n### App actions\n\n#### Get enabled applications\n\n```\nenabled = ocs.app.enabled\n# =\u003e […]\nmeta = enabled.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Get disabled applications\n\n```\ndisabled = ocs.app.disabled\n# =\u003e […]\nmeta = disabled.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Get application information\n\n```\napp = ocs.app.find(\"appname\")\n# =\u003e {…}\nmeta = app.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Enable application\n\n```\nmeta = ocs.app(\"appname\").enable.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\nif you work with initialized App class\n\n```\napp.set(\"appname\").enable\n```\n\n#### Disable application\n\n```\nmeta = ocs.app(\"appname\").disable.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\nif you work with initialized App class\n\n```\napp.set(\"appname\").disable\n```\n\n### FileSharing API\n\n#### Initialize with authentication information\n\nFirst of all you need to initiate a class with authentication information of user\n\n```\nocs_fs = Nextcloud::Ocs::FileSharingApi.new(\n  url: \"https://cloud.yourdomain.com\",\n  username: \"your_username\",\n  password: \"your_password\"\n)\n```\n\nAn URL has to be a base of your Nextcloud instance. For Sharing API requests, it will be parsed to \n`https://cloud.yourdomain.com/ocs/v2.php/apps/files_sharing/api/v1/` \n\n\u003e You can also initialize with `Nextcloud.ocs(…credentials).file_sharing`\n\n#### Retrieve all shares of an (authenticated) user\n\n```\nall_shares = ocs_fs.all\n# =\u003e [{…}, {…}]\nmeta = all_shares.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Retrieve a single share\n\n```\nshare = ocs_fs.find(11)\n# =\u003e {\"id\" =\u003e \"22\", \"shareType\" =\u003e \"0\", …}\nmeta = share.meta \n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Retrive shares from specific file or folder\n\nCan be called with two optional parameters\n* reshares - boolean - shows all shares for a given file\n* subfiles - boolean - shows all shares for subfiles in a directory\n\n```\n# shares from file.txt\nfile_shares = ocs_fs.specific(\"file.txt\")\n\n# shares from /dir1\ndir_shares = ocs_fs.specific(\"/dir1\")\n\n# not only the shares from the current user but all shares from the given file\nreshares = ocs_fs.specific(\"file1.txt\", true)\n\n# all shares within a folder, given that path defines a folder\nsubfiles = ocs_fs.specific(\"/dir1\", ture, true)\n\n# Attached variables will also have .meta method with server response information\n```\n\n#### Create a share\n\nFirst argument is a `path` (required) to a file or a folder\n\n`shareType` (required) has to be an integer\n\n* 0 = user\n* 1 = group\n* 3 = public link\n* 6 = federated cloud share\n\n`shareWith` is only reqired if `shareType` is `0` or `1`, defines user or group file will be shared with\n\n`publicUpload` is boolean, allows public uploads in a directory (Visitors will be able to upload to public directory\nshared with link)\n\n`password` to protect shared links with\n\n`permissions` has to be an integer (default: 31, for public shares: 1)\n\n* 1 = read\n* 2 = update\n* 4 = create\n* 8 = delete\n* 16 = share\n* 31 = all\n\n```\n# share file.txt with user user1\nocs_fs.create(\"file.txt\", 0, \"user1\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n\n# share file1.txt with public link and assign password to it\nocs_fs.create(\"file1.txt\", 3, nil, nil, \"password1P/\")\n```\n\n#### Delete a share\n\n```\ndelete = ocs_fs.destroy(\"21\").meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Update a share\n\nFor details about permissions see \"Create a share\" section\n\nExpiration date should be in \"YYYY-MM-DD\" format\n\n```\n# makes a share read-only\nocs_fs.update_permissions(21, 1)\n\n# updates password\nocs_fs.update_password(21, \"newPassword!0\")\n\n# allows public uploads\nocs_fs.update_public_upload(21, true)\n\n# change expiration date\nocs_fs.update_expire_date(21, \"2017-11-22\")\n\n# These methods will also have .meta method with server response information\n```\n\n### Federated Cloud Shares\n\nTo create a federated cloud shares you can use `create` method on `FileSharingApi` (see previous section)\n\n#### List accepted federated shares\n\n```\naccepted = ocs_fs.federated.accepted\n# =\u003e [{…}, {…}]\nmeta = accepted.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### List pending federated shares\n\n```\npending = ocs_fs.federated.pending\n# =\u003e [{…}, {…}]\nmeta = pending.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Info about federated share (accepted)\n\n```\nfederated_share = ocs_fs.federated.find(12)\n# =\u003e {\"id\"=\u003e\"12\", \"remote\"=\u003e\"https://…\", …}s\nmeta = federated_share.meta\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Delete accepted federated share\n\n```\nmeta = ocs_fs.federated.destroy(12)\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Accept federated share\n\n```\nmeta = ocs_fs.federated.accept(13)\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n#### Decline federated share\n\n```\nmeta = ocs_fs.federated.decline(13)\n# =\u003e {\"status\"=\u003e\"ok\", \"statuscode\"=\u003e\"200\", \"message\"=\u003e\"OK\"}\n```\n\n### *WebDAV Api usage*\n\nIn these examples `webdav` variable is assumed to be a valid instance of\n`Nextcloud.webdav` or `Nextcloud::Webdav::{CLASS_NAME}.new`\n\n### File/Directory Operations\n\n#### Find files/directories in given path\n\n```\ndirectory = webdav.directory.find(\"dir1/\")\n```\n\nWill return instance of `Directory` model with information about current directory, it's method `contents` will contain\narray of results:\n\n```\ndirectory.contents\n``` \n\n#### Query information about file\n\n```\nfile = webdav.directory.find(\"some_file.txt\")\n```\n\n#### Create a directory\n\n```\nwebdav.directory.create(\"some_dir/new_dir\")\n```\n\n#### Delete a directory\n\n```\nwebdav.directory.destroy(\"some_dir\")\n```\n\n#### Move a directory\n\n```\nwebdav.directory.move(\"source_dir/\", \"destination_dir/\")\n```\n\n#### Copy a directory\n\n```\nwebdav.directory.copy(\"source_dir/\", \"destination_dir/)\n```\n\n#### Download a file\n\n```\nwebdav.directory.download(\"some_file.txt\")\n```\n\n#### Upload a file\n\n```\nwebdav.directory.upload(\"some_dir/new_file.txt\", \"CONTENTS\")\n```\n\n#### Make a file favorite\n\n```\nwebdav.directory.favorite(\"some_file\")\n```\n\n#### Unfavorite a file\n\n```\nwebdav.directory.unfavorite(\"some_file\")\n```\n\n#### Show favorite files in path\n\n```\nwebdav.directory.favorites(\"/\")\n```\n\n### Group Folder API\n\n#### Initialize with authentication information\n\nFirst of all you need to initiate a class with authentication information of user\n\n```\ngf = Nextcloud::Ocs::GroupFolder.new(\n  url: \"https://cloud.yourdomain.com\",\n  username: \"your_username\",\n  password: \"your_password\"\n)\n```\n\n#### List of folders\n\n```\ngf.folders\n```\n\n#### Find folder with id 16\n\n```\ngf.find(16)\n```\n\n#### Get ID of folder with name 'Intern\n\n```\ngf.get_folder_id('Intern')\n```\n\n#### Create folder with name 'Intern'\n\n```\ngf.create('Intern')\n```\n\n#### Destroy folder id 16\n\n```\ngf.destroy(16)\n```\n\n#### Give access to folder with id 16 for 'Intern'\n\n```\ngf.give_access(16, 'Intern')\n```\n\n#### Remove access to folder with id 16 for 'Intern'\n\n```\ngf.remove_access(16, 'Intern')\n```\n\n#### Set permissions for folder with id 16 and group 'Intern' to 31\n\n```\ngf.set_permissions(16, 'Intern', 31)\n```\n\n#### Set quota of folder with id 16 to 7 GB\n\n```\ngf.set_quota(16, 1024*1024*1024*7)\n```\n\n#### Rename folder with id 16 to 'Extern'\n\n```\ngf.rename_folder(16, 'Extern')\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/dachinat/nextcloud. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Nextcloud gem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/dachinat/nextcloud/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdachinat%2Fnextcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdachinat%2Fnextcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdachinat%2Fnextcloud/lists"}