Lomon---- 2020-12-14 21:42 采纳率: 0%
浏览 4
已结题

关于PHP POST 的代码

以下JSON数据提报,要求返回Response,求PHP代码,谢谢!

Request:

 

 

{

    "method": "post",

    "url": "http://api.uai.ucloud.cn/v1/image/scan",

    "headers": {

        "Content-Type": "multipart/form-data; boundary=----xxxxxxxxxxxx",

        "ResourceId": "uaicensor-1f1s4dqr",

        "PublicKey": "6b2lCzxpm3oC2N8EbDvKmYGT69W2hMwbspWRVxT9B",

        "Signature": "ce6e69c4cc0f5edfa9793f82dd8c75f3b691a332",

        "Timestamp": 1607437768390

    },

    "data": {

        "Scenes": "porn",

        "Method": "url",

        "Url": "https://qzonestyle.gtimg.cn/qzone/v6/portal/gy/404/upload/20200521/0_c568ec25c8b0a0e524d3d042a13bd586.jpg"

    }

}

  • 写回答

3条回答 默认 最新

  • Lomon---- 2020-12-15 09:03
    关注

    Response:

     

    {

        "RetCode": 0,

        "Message": "",

        "Timestamp": 1607437772,

        "Status": "Success",

        "StartTime": 1607437768390,

        "EndTime": 1607437772,

        "Result": {

            "Porn": {

                "Suggestion": "pass",

                "Score": 0.00224

            },

            "Politician": {

                "Suggestion": "",

                "Score": 0

            },

            "Terror": {

                "Suggestion": "",

                "Score": 0

            }

        }

    }

    评论

报告相同问题?