
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
This gem allows you to invite other users to a shared folder in Dropbox. It's known that Dropbox API doesn't allow this operation, however it's a requirement in some scenarios.
To achieve this functionality and due to the lack of implementation in the official API, the library relies on rest-client and nokogiri to perform the action through the web interface.
This gem is meant to provide a missing functionality, not to build another API implementation. Ideally you'd use this library in combination with some actual implementation of the Dropbox API.
I recommend dropbox-api just
because I've included integration for it. If Dropbox::API
is found
the existing classes will be extended to allow you invite people to your
folders. This is shown in the examples below.
This gem depends 100% on the parsing of the HTML from Dropbox web pages, therefore a change in their layouts might result in a broken library. Please, keep this in mind if you're planning to use this in a production environment.
Another drawback of using the web interface is of course the speed.
dropbox-api
(recommended)First, you'll need to set up dropbox-api
as explained in the [gem's README]
(https://github.com/futuresimple/dropbox-api):
Dropbox::API::Config.app_key = YOUR_APP_KEY
Dropbox::API::Config.app_secret = YOUR_APP_SECRET
Dropbox::API::Config.mode = "dropbox" # This is a requirement
At this point you're able to instantiate a Dropbox::API::Client
object either
through web-based authorization or rake-based. So far, nothing new.
Additionally you'll need to set up the web login credentials as part of the API settings to enable the initialization of a web client when it's required.
Dropbox::API::Config.web_session = Dropbox::WebClient::Session.new(
:email => "example@corkeryfisher.info",
:password => "yourPassw0rd"
)
Note that the web authentication won't happen until you actually need it, i.e.
when the invite
method is invoked.
Now, assuming that you've got a Dropbox::API::Dir
object called some_dir
,
you'd be able to perform this:
response = some_dir.invite("kirsten.greenholt@corkeryfisher.info")
# => #<Dropbox::WebClient::ResponseParser ... >
response.error?
# => false
response.response_data
# => {"success_msg"=>"Created shared folder 'folder x'", "sf_info"=>{"mount_point"=>"/folder x", "user_id"=>372486289, "extra_count"=>0, "sort_rank"=>nil, "encoded_sort_key"=>["NkhCMjROBloBDAEMAA=="], "other_emails"=>[], "other_names"=>[], "modified_pretty"=>"just now", "href"=>"/home/folder%20x", "modified_ts"=>1420051083, "filename"=>"folder x", "target_ns_id"=>791334450, "icon"=>"folder_user"}}
Additionally you can check who's included in the dir through members
:
some_dir.members
# => ["example@corkeryfisher.info", "kirsten.greenholt@corkeryfisher.info"]
session = Dropbox::WebClient::Session.new(
:email => "your@account.com",
:password => "yourPassw0rd"
)
session.invite("/folder path", ["kirsten.greenholt@corkeryfisher.info"])
# => #<Dropbox::WebClient::ResponseParser ... >
Would be nice to:
Please report them in issues
FAQs
Unknown package
We found that dropbox-invite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.