BaiduConstants.ets 1.1 KB

1234567891011121314151617
  1. export class BaiduConstants {
  2. static readonly APP_ID: string = '120810251';
  3. static readonly APP_KEY: string = 'VOUah0fCL4RfFPshCmC2iSrRUPHXMXMX';
  4. static readonly SECRET_KEY: string = '1qSVRFM34jSmOSdcqqqXKwimlHghU4nc';
  5. static readonly SIGN_KEY: string = 'jc7sCtsAMp*kzSnIYA%4uCwmbPFF%PF*';
  6. static readonly USER_AGENT: string = 'pan.baidu.com';
  7. static readonly STREAMING_USER_AGENT: string = 'xpanaudio;TTMusic;1.0;openharmony;4.0;ts';
  8. static readonly STREAMING_AUDIO_TYPE: string = 'M3U8_HLS_MP3_128';
  9. static readonly AUTHORIZE_URL: string = 'https://openapi.baidu.com/oauth/2.0/authorize';
  10. static readonly DEVICE_CODE_URL: string = 'https://openapi.baidu.com/oauth/2.0/device/code';
  11. static readonly TOKEN_URL: string = 'https://openapi.baidu.com/oauth/2.0/token';
  12. static readonly OPENAPI_BASE: string = 'https://openapi.baidu.com';
  13. static readonly PAN_BASE: string = 'https://pan.baidu.com';
  14. static readonly AUTH_SCOPE: string = 'basic,netdisk';
  15. static readonly OOB_REDIRECT_PARAM: string = 'oob';
  16. static readonly LOGIN_SUCCESS_URL: string = 'http://openapi.baidu.com/oauth/2.0/login_success';
  17. }