抖音小程序

douyin.php 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. return [
  3. 'getAccessToken' => '/api/apps/v2/token',// 获取AccessToken
  4. 'getSession' => '/api/apps/v2/jscode2session',// 用户登录
  5. 'getClientToken' => '/oauth/client_token/', // 获取ClientToken
  6. 'uploadMedia' => '/api/playlet/v2/resource/upload/', // 上传素材到内容库
  7. 'queryVideo' => '/api/playlet/v2/video/query/', // 查询视频状态
  8. 'createAlbum' => '/api/playlet/v2/video/create/', // 创建短剧
  9. 'editAlbum' => '/api/playlet/v2/video/edit/', // 编辑短剧、添加剧集
  10. 'bindPage' => '/api/playlet/v2/album/bind/',// 页面绑定路径
  11. 'albumAuth' => '/api/playlet/v2/auth/authorize/',// 短剧授权
  12. 'albumExamine' => '/api/playlet/v2/video/review/',// 短剧送审
  13. 'albumOnline' => '/api/playlet/v2/album/online/',// 短剧上线/短剧查询
  14. 'albumFetch' => '/api/playlet/v2/album/fetch/',// 短剧查询
  15. 'customerService' => '/api/apps/v1/capacity/query_aweme_relation_list/',// 绑定抖音号列表
  16. 'adPlacementQuery' => '/api/apps/v1/ad_placement/query/',// 查询广告位列表
  17. 'adPlacementAdd' => '/api/apps/v1/ad_placement/add/', // 添加广告位
  18. 'adPlacementUpdate' => '/api/apps/v1/ad_placement/update/',// 更新广告位状态
  19. /*
  20. 喝彩短剧 tt5a212c9cc51102a601
  21. 繁华短剧 tt6ac51c78f5f533ad01
  22. */
  23. 'app_info' => [
  24. 'tt5a212c9cc51102a601' => [
  25. 'app_id' => 'tt5a212c9cc51102a601',
  26. 'secret' => '1485a2e771063a9751870d297cd02886ac54e85e',
  27. 'app_name' => '喝彩短剧',
  28. ],
  29. 'tt6ac51c78f5f533ad01' => [
  30. 'app_id' => 'tt6ac51c78f5f533ad01',
  31. 'secret' => '460caeaaa34862a10c70676cba6663940935abef',
  32. 'app_name' => '繁华短剧',
  33. ],
  34. ],
  35. 'tag_list' => [
  36. 1 => '医神',
  37. 2 => '赘婿',
  38. 3 => '鉴宝',
  39. 4 => '战神',
  40. 5 => '娱乐明星',
  41. 6 => '神医',
  42. 7 => '重生',
  43. 8 => '职场',
  44. 9 => '逆袭',
  45. 10 => '复仇',
  46. 11 => '青春',
  47. 12 => '官场',
  48. 13 => '家庭情感',
  49. 14 => '乡村',
  50. 15 => '正能量',
  51. 16 => '成长',
  52. 17 => '伦理',
  53. 18 => '都市情感',
  54. 19 => '社会话题',
  55. 20 => '灵异',
  56. 21 => '悬疑推理',
  57. 22 => '虐恋',
  58. 23 => '甜宠',
  59. 24 => '高干军婚',
  60. 25 => '年代',
  61. 26 => '萌宝',
  62. 27 => '腹黑',
  63. 28 => '总裁',
  64. 29 => '宫斗宅斗',
  65. 30 => '穿越',
  66. 31 => '种田经商',
  67. 33 => '民俗',
  68. 34 => '古装',
  69. 35 => '穿越战争',
  70. 36 => '现代军事',
  71. 37 => '奇幻',
  72. 38 => '科幻',
  73. 39 => '架空玄幻',
  74. 40 => '热血',
  75. 41 => '历史',
  76. 42 => '搞笑',
  77. 43 => '仙侠',
  78. 44 => '武侠',
  79. 45 => '二次元',
  80. 46 => '其他'
  81. ],
  82. 'errcode' => [
  83. 0 => '请求成功',
  84. -1 => '系统错误',
  85. 40014 => '未传必要参数,请检查',
  86. 40015 => 'appid 错误',
  87. 40017 => 'secret 错误',
  88. 40018 => 'code 错误',
  89. 40019 => 'acode 错误',
  90. 40020 => 'grant_type 不是 client_credential',
  91. ],
  92. ];