Git Product home page Git Product logo

Comments (5)

jabbany avatar jabbany commented on August 23, 2024

注意这个API必须要POST,GET的话就是 404

from dhufufu.

bi119aTe5hXk avatar bi119aTe5hXk commented on August 23, 2024

POST是使用JSON编码{"ep_id":xxx,"auth":"xxx"}还是类似GET那样用ep_id=xxx&auth=xxx
已经source=onAir了的情况下两种方法都测试了但是都是返回401 Unauthorized。

from dhufufu.

jabbany avatar jabbany commented on August 23, 2024

第二种编码。注意这里的验证auth信息得走 POST而不是GET。还有我忘了是不是需要给Mime Type是application/x-www-form-urlencoded。还有目前来看,source在POST和 queryString里面都要有

from dhufufu.

bi119aTe5hXk avatar bi119aTe5hXk commented on August 23, 2024

URL:http://api.bgm.tv/ep/385310/status/watched?source=onAir
POST:ep_id=385310&auth=<auth key url encoded>
返回:{"request":"\/ep\/385310\/status\/queue?source=onAir","code":401,"error":"Unauthorized"}

from dhufufu.

jabbany avatar jabbany commented on August 23, 2024

这个先开着,有空了研究一下

from dhufufu.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.