Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xyz.cssxsh.baidu:baidu-oauth

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xyz.cssxsh.baidu:baidu-oauth

baidu-oauth

  • 3.3.2
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Baidu Api Client

百度API的Kotlin Jvm SDK

Test Codacy Badge

  • oauth baidu-oauth
  • aip baidu-aip
  • netdisk baidu-netdisk
  • unit baidu-netdisk

Baidu User Oauth

部分SDK的前置库
有三种验证方式

服务端的方式获取 Token, block 输入 认证网页 Url ,返回认证码
suspend fun authorize(block: suspend (Url) -> String)

移动端的方式获取 Token, block 输入 认证网页 Url ,返回跳转Url
suspend fun implicit(block: suspend (Url) -> Url)

设备认证的方式获取 Token, block 第一个参数是 直接网页认证的Url,第二个是 二维码认证的图片Url
suspend fun device(block: suspend (Url, Url) -> Unit)

刷新 Token
suspend fun refresh()

Baidu Netdisk

构建客户端的参数需要到 百度网盘开放中心 申请
客户端工作目录为/apps/${app_name}

已完成的功能

  1. 验证登录
  2. 上传文件
  3. 列出文件
  4. 搜索文件
  5. 秒传链接 获取和解析

Baidu AIP

AIP文档

目前实现的功能有

Baidu Unit

Unit 文档
Unit 控制台

Gradle引用包

repositories {
    mavenCentral()
}

dependencies {
    implementation("xyz.cssxsh.baidu:baidu-netdisk:${version}")
    implementation("xyz.cssxsh.baidu:baidu-aip:${version}")
    implementation("xyz.cssxsh.baidu:baidu-unit:${version}")
}

注意 本SDK 设置的 JvmTargetJavaVersion.VERSION_11

爱发电

afdian

FAQs

Package last updated on 17 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc