
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Ruby gem for Baidu http://developer.baidu.com apis. Developing
Rubygems: https://rubygems.org/gems/api4baidu
Add this line to your application's Gemfile:
gem "api4baidu"
And then execute:
$ bundle
Or install it yourself as:
$ gem install api4baidu
$client = Baidu.configure do |config|
config.api_key = "you client id"
config.api_secret = "you client secert"
end
$client.authorize_url
# 访问上面生成的链接,并复制授权码: "515a268fd483ff4df85d2d458d34b43a"
$client.token!("515a268fd483ff4df85d2d458d34b43a")
# 获取当前登录用户的用户uid、用户名和头像。
$client.get_loggedin_user
=> Result:
{"uid" => "1863251187",
"uname" => "0807515210",
"portrait"=> "ba6f303830373531353231302c0a"}
更多使用例子请查看 spec
目录
获取当前登录用户的信息: get_loggedin_user
返回指定用户的用户资料: get_user_info
平台授权相关的权限: get_app_permission
判断用户是否为应用用户: is_app_user
返回用户好友资料: get_friends
获得指定用户之间好友关系: areFriends
获取当前用户空间配额信息: pcs_quota
上传单个文件: upload_single_file
下载单个文件: download_single_file
创建目录: create_directory
获取单个文件/目录的元信息: get_single_meta
删除单个文件/目录: delete_single_file
获取指定图片文件的缩略图: get_image_thumbnail
逐步完善所有API对接
重构oauth2,分离出独立的gem实现
添加Terminal命令控制
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that api4baidu 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.