@solinker/nodes-baidu-wangpan
Version:
百度网盘是百度为用户精心打造的云存储产品,已覆盖主流PC和手机操作系统,包含Web版、Windows版、Mac版、Android版等不同版本,免费提供2T超大存储空间,用户将可以轻松将自己的文件上传到网盘上,并可跨端随时随地查看和分享。
50 lines • 1.76 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaiduWangpanOAuth2Api = void 0;
class BaiduWangpanOAuth2Api {
constructor() {
this.name = 'baiduWangpanOAuth2Api';
this.displayName = '百度网盘 OAuth2 API';
this.documentationUrl = 'https://pan.baidu.com/union/doc/ol0rsap9s';
this.extends = ['oAuth2Api'];
this.iconUrl = '/icons/CUSTOM/baidu-wangpan/dist/nodes/BaiduWangpan/logo.png';
this.properties = [
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'string',
default: 'https://openapi.baidu.com/oauth/2.0/authorize',
required: true,
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'string',
default: 'https://api.n8n.store/api/baidu-wangpan/token',
required: true,
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: 'basic,netdisk',
required: true,
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
default: 'response_type=code',
required: true,
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'body',
},
];
}
}
exports.BaiduWangpanOAuth2Api = BaiduWangpanOAuth2Api;
//# sourceMappingURL=BaiduWangpanOAuth2Api.credentials.js.map