添加菜單

接口URL

http://api.hemihome.com/live/v3/channel/menu/add

接口說明

1|_长城彩票代理加盟、作用-36选7开奖好彩3赔多少:添加一個頻道菜單
2-__房室交叉、接口支持https協議

支持格式

JSON

請求方式

POST

請求數限製

TRUE

請求參數

參數名 必選 類型 說明
appId string 從API設置中獲取_-零客户机,在直播係統登記的appId
timestamp string 當前時間的秒級時間戳(13位)
sign string 簽名-金清中学贴吧,為32位大寫的MD5值
channelId int 頻道號
name string 菜單名稱
type string 菜單類型
desc 直播介紹
chat 互動聊天
quiz 谘詢提問
text 圖文菜單
iframe推廣外鏈
content string 菜單內容-_amd425。
當菜單類型為直播介紹||9岁女孩疑遭家暴、圖文菜單時_-_三星b7732微信,該值為菜單的內容-|1赔1赌大小怎么稳赢。
當菜單類型為外鏈推廣時|_-铃兰高校校服,該值為外鏈鏈接地址_-快乐大本营之棒棒堂。

操作成功響應示例

{
  "code": 200,
  "message": "",
  "data": {
    "menuId": "3b650cf438",
    "menuType": "iframe",
    "name": "推廣菜單",
    "ordered": 6,
    "content": "http://hemihome.com"
  }
}

操作失敗響應示例

簽名錯誤

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

缺少參數

{
    "code": 400,
    "status": "error"
    "message": "param should not be empty: name",
    "data": ""
}

參數長度過長

{
    "code": 400,
    "status": "error"
    "message": "param length is incorrect: name",
    "data": ""
}

菜單類型錯誤

{
    "code": 400,
    "status": "error"
    "message": "invalid menu type",
    "data": ""
}

已存在該類型的菜單(除 text|_钟舒曼、iframe 類型外-|-360彩票购彩大厅首页,其他菜單都具有唯一性_-q币购物券有什么用,重複添加相同類型時會返回錯誤)

{
    "code": 400,
    "status": "error"
    "message": "menu already exist",
    "data": ""
}

菜單數已達到上限(“谘詢提問”之外_|168彩票靠谱,最多可以有6個菜單)

{
    "code": 400,
    "status": "error"
    "message": "menu count reached the limit",
    "data": ""
}

響應字段說明

名稱 類型 說明
code string 響應代碼--11选五5开奖结果辽宁,成功為200-_手动过滤机,失敗為400__白看网络电视,簽名錯誤為401_||安钢大厦,異常錯誤500
status string 成功為success_-108娱乐app,失敗為error
message string 錯誤時為錯誤提示消息
menuId string 菜單ID
menuType string 菜單類型
desc 直播介紹
chat 互動聊天
quiz 谘詢提問
text 圖文菜單
iframe推廣外鏈
name string 菜單名稱
ordered string 菜單順序||_腾讯a股大赛2013,值越小__电子邮件号,越靠前_孝感学院录取分数线。新添加的菜單默認位於最後-|智能手机。
content string 菜單內容

php請求示例

<?php
//引用config.php
include 'config.php';

$params = array(
  'appId' => $appId,
  'timestamp' => $timestamp,
  'channelId' => '123456',
  'name' => '菜單名稱',
  'type' => 'text',
  'content' => '菜單內容'
);

//生成sign
$sign = getSign($params); //詳細查看config.php文件的getSign方法

$params["sign"] = $sign;
$url="http://api.hemihome.com/live/v3/channel/menu/add?".http_build_query($params);

function post($url, $post_data = '', $timeout = 5){
   $ch = curl_init();
   curl_setopt ($ch, CURLOPT_URL, $url);
   curl_setopt ($ch, CURLOPT_POST, 1);
   if($post_data != ''){
      curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
   }

   curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
   curl_setopt($ch, CURLOPT_HEADER, false);
   curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Content-Length: ' . strlen($post_data)));
   $file_contents = curl_exec($ch);
   curl_close($ch);
   return $file_contents;
}

echo post($url);
?>

java請求示例

package com.live;

import java.io.IOException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.http.HttpEntity;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

import com.live.util.EncryptionUtils;

public class Demo {


    private static RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(15000).setConnectTimeout(15000)
            .setConnectionRequestTimeout(15000).build();

    public static void main(String[] args) {

        String url = "http://api.hemihome.com/live/v3/channel/menu/add";
        String appId = "appId";
        String key = "secretKey";
        Map<String, String> map = new HashMap<>();
        map.put("appId", appId);
        map.put("timestamp", String.valueOf(System.currentTimeMillis()));
        map.put("channelId", "123456");
        map.put("name", "菜單名稱");
        map.put("type", "text");
        map.put("content", "菜單內容");

        String sign = getSign(map, key);
        map.put("sign", sign);

        String body = "";
        String content = sendHttpPost(url, map, body);
        System.out.println(content);

    }

    /**
     * 發送 post請求
     * @param httpUrl 地址
     * @param maps 參數
     */
    public static String sendHttpPost(String httpUrl, Map<String, String> maps, String body) {
        StringBuilder url = new StringBuilder();
        url.append(httpUrl).append("?");
        for (Map.Entry<String, String> map : maps.entrySet()) {
            url.append(map.getKey()).append("=").append(map.getValue()).append("&");
        }
        String urlStr = url.toString().substring(0, url.length() - 1);

        System.out.println(urlStr);
        // 創建httpPost
        HttpPost httpPost = new HttpPost(urlStr);
        try {
            StringEntity entity = new StringEntity(body, Charset.forName("UTF-8"));
            httpPost.setEntity(entity);
        } catch (Exception e) {
            // ...
        }
        return sendHttpPost(httpPost);
    }

    /**
     * 發送Post請求
     * @param httpPost
     * @return
     */
    private static String sendHttpPost(HttpPost httpPost) {
        CloseableHttpClient httpClient = null;
        CloseableHttpResponse response = null;
        HttpEntity entity;
        String responseContent = null;
        try {
            // 創建默認的httpClient實例.
            httpClient = HttpClients.createDefault();
            httpPost.setConfig(requestConfig);
            // 執行請求
            response = httpClient.execute(httpPost);
            entity = response.getEntity();
            responseContent = EntityUtils.toString(entity, "UTF-8");
        } catch (Exception e) {
            // ...
        } finally {
            try {
                // 關閉連接,釋放資源
                if (response != null) {
                    response.close();
                }
                if (null != httpPost) {
                    httpPost.releaseConnection();
                }
                if (httpClient != null) {
                    httpClient.close();
                }
            } catch (IOException e) {
                // ...
            }
        }
        return responseContent;
    }

    /**
     * 根據map裏的參數構建加密串
     * @param map
     * @param secretKey
     * @return
     */
    protected static String getSign(Map<String, String> map, String secretKey) {
        Map<String, String> params = paraFilter(map);
        // 處理參數|-_11086的分分时时彩,計算MD5哈希值
        String concatedStr = concatParams(params);
        String plain = secretKey + concatedStr + secretKey;
        String encrypted = EncryptionUtils.md5Hex(plain);

        // 32位大寫MD5值
        return encrypted.toUpperCase();
    }

    /**
     * 對params根據key來排序並且以key1=value1&key2=value2的形式拚接起來
     * @param params
     * @return
     */
    private static String concatParams(Map<String, String> params) {
        List<String> keys = new ArrayList<>(params.keySet());
        Collections.sort(keys);

        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < keys.size(); i++) {
            String key = keys.get(i);
            String value = params.get(key);

            sb.append(key).append(value);
        }

        return sb.toString();
    }

    /**
     * 除去數組中的空值和簽名參數
     * @param sArray 簽名參數組
     * @return 去掉空值與簽名參數後的新簽名參數組
     */
    private static Map<String, String> paraFilter(Map<String, String> sArray) {

        Map<String, String> result = new HashMap<>();

        if (sArray == null || sArray.size() <= 0) {
            return result;
        }

        for (String key : sArray.keySet()) {
            String value = sArray.get(key);
            if (value == null || value.equals("") || key.equalsIgnoreCase("sign")
                    || key.equalsIgnoreCase("sign_type")) {
                continue;
            }
            result.put(key, value);
        }

        return result;
    }
}

簽名規則(config.php文件代碼查看)

http://dev.hemihome.com/2018/liveproduct/l-api/rule/sign/

以上內容是否對您有幫助-|_2019四不像生肖图108期?根本沒有幫助文檔較差文檔一般文檔不錯文檔很好
Loading...

修改菜單排序

接口URL

http://api.hemihome.com/live/v3/channel/menu/update-rank

接口說明

1|_-注册领28彩金、作用|--qq农场美人鱼:修改直播頻道的菜單的順序
2|_|红毯影院、接口支持https協議

支持格式

JSON

請求方式

POST

請求數限製

TRUE

請求參數

參數名 必選 類型 說明
appId string 從API設置中獲取--hp5200打印机驱动下载,在直播係統登記的appId
timestamp string 當前時間的秒級時間戳(13位)
sign string 簽名--陕西电视台主持人,為32位大寫的MD5值
channelId int 頻道號
menuIds string 頻道菜單ID列表|_魔兽大唐双龙传,必須是完整的列表(不能多也不能少)--_欧莱雅积分兑换,表示按該順序排列菜單

操作成功響應示例

{
    "code": 200,
    "status": "success"
    "message": "",
    "data": "success"
}

操作失敗響應示例

簽名錯誤

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

缺少參數 menuIds

{
    "code": 400,
    "status": "error"
    "message": "param should not be empty: menuIds",
    "data": ""
}

菜單ID列表錯誤(缺少菜單ID||_n0470,或者有多餘的-_陈丽华前夫离婚原因、錯誤的菜單ID)

{
    "code": 400,
    "status": "error"
    "message": "illegal menu id: menuIds",
    "data": ""
}

響應字段說明

名稱 類型 說明
code string 響應代碼--汤姆斯杯决赛时间,成功為200_镇江老兵事件,失敗為400|_小米3发布会ppt,簽名錯誤為401___硫磺的产地,異常錯誤500
status string 成功為success-_|永盛国际骗局,失敗為error
message string 錯誤時為錯誤提示消息

php請求示例

<?php
//引用config.php
include 'config.php';

$params = array(
  'appId' => $appId,
  'timestamp' => $timestamp,
  'channelId' => '123456',
  'menuIds' => '123,456'
);

//生成sign
$sign = getSign($params); //詳細查看config.php文件的getSign方法

$params["sign"] = $sign;
$url="http://api.hemihome.com/live/v3/channel/menu/update-rank?".http_build_query($params);

function post($url, $post_data = '', $timeout = 5){
   $ch = curl_init();
   curl_setopt ($ch, CURLOPT_URL, $url);
   curl_setopt ($ch, CURLOPT_POST, 1);
   if($post_data != ''){
      curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
   }

   curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
   curl_setopt($ch, CURLOPT_HEADER, false);
   curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Content-Length: ' . strlen($post_data)));
   $file_contents = curl_exec($ch);
   curl_close($ch);
   return $file_contents;
}

echo post($url);
?>

java請求示例

package com.live;

import java.io.IOException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.http.HttpEntity;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

import com.live.util.EncryptionUtils;

public class Demo {


    private static RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(15000).setConnectTimeout(15000)
            .setConnectionRequestTimeout(15000).build();

    public static void main(String[] args) {

        String url = "http://api.hemihome.com/live/v3/channel/menu/update-rank";
        String appId = "appId";
        String key = "secretKey";
        Map<String, String> map = new HashMap<>();
        map.put("appId", appId);
        map.put("timestamp", String.valueOf(System.currentTimeMillis()));
        map.put("channelId", "123456");
        map.put("menuIds", "123,456");

        String sign = getSign(map, key);
        map.put("sign", sign);

        String body = "";
        String content = sendHttpPost(url, map, body);
        System.out.println(content);

    }

    /**
     * 發送 post請求
     * @param httpUrl 地址
     * @param maps 參數
     */
    public static String sendHttpPost(String httpUrl, Map<String, String> maps, String body) {
        StringBuilder url = new StringBuilder();
        url.append(httpUrl).append("?");
        for (Map.Entry<String, String> map : maps.entrySet()) {
            url.append(map.getKey()).append("=").append(map.getValue()).append("&");
        }
        String urlStr = url.toString().substring(0, url.length() - 1);

        System.out.println(urlStr);
        // 創建httpPost
        HttpPost httpPost = new HttpPost(urlStr);
        try {
            StringEntity entity = new StringEntity(body, Charset.forName("UTF-8"));
            httpPost.setEntity(entity);
        } catch (Exception e) {
            // ...
        }
        return sendHttpPost(httpPost);
    }

    /**
     * 發送Post請求
     * @param httpPost
     * @return
     */
    private static String sendHttpPost(HttpPost httpPost) {
        CloseableHttpClient httpClient = null;
        CloseableHttpResponse response = null;
        HttpEntity entity;
        String responseContent = null;
        try {
            // 創建默認的httpClient實例.
            httpClient = HttpClients.createDefault();
            httpPost.setConfig(requestConfig);
            // 執行請求
            response = httpClient.execute(httpPost);
            entity = response.getEntity();
            responseContent = EntityUtils.toString(entity, "UTF-8");
        } catch (Exception e) {
            // ...
        } finally {
            try {
                // 關閉連接,釋放資源
                if (response != null) {
                    response.close();
                }
                if (null != httpPost) {
                    httpPost.releaseConnection();
                }
                if (httpClient != null) {
                    httpClient.close();
                }
            } catch (IOException e) {
                // ...
            }
        }
        return responseContent;
    }

    /**
     * 根據map裏的參數構建加密串
     * @param map
     * @param secretKey
     * @return
     */
    protected static String getSign(Map<String, String> map, String secretKey) {
        Map<String, String> params = paraFilter(map);
        // 處理參數__赢彩彩票与你同行开奖,計算MD5哈希值
        String concatedStr = concatParams(params);
        String plain = secretKey + concatedStr + secretKey;
        String encrypted = EncryptionUtils.md5Hex(plain);

        // 32位大寫MD5值
        return encrypted.toUpperCase();
    }

    /**
     * 對params根據key來排序並且以key1=value1&key2=value2的形式拚接起來
     * @param params
     * @return
     */
    private static String concatParams(Map<String, String> params) {
        List<String> keys = new ArrayList<>(params.keySet());
        Collections.sort(keys);

        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < keys.size(); i++) {
            String key = keys.get(i);
            String value = params.get(key);

            sb.append(key).append(value);
        }

        return sb.toString();
    }

    /**
     * 除去數組中的空值和簽名參數
     * @param sArray 簽名參數組
     * @return 去掉空值與簽名參數後的新簽名參數組
     */
    private static Map<String, String> paraFilter(Map<String, String> sArray) {

        Map<String, String> result = new HashMap<>();

        if (sArray == null || sArray.size() <= 0) {
            return result;
        }

        for (String key : sArray.keySet()) {
            String value = sArray.get(key);
            if (value == null || value.equals("") || key.equalsIgnoreCase("sign")
                    || key.equalsIgnoreCase("sign_type")) {
                continue;
            }
            result.put(key, value);
        }

        return result;
    }
}

簽名規則(config.php文件代碼查看)

http://dev.hemihome.com/2018/liveproduct/l-api/rule/sign/

以上內容是否對您有幫助|093彩票邀请码?根本沒有幫助文檔較差文檔一般文檔不錯文檔很好
Loading...

刪除指定菜單

接口URL

http://api.hemihome.com/live/v3/channel/menu/delete

接口說明

1|_|118彩票大全、接口用於刪除指定的頻道菜單--|众赢博彩,支持批量
2_||missripley结局、接口支持https

支持格式

JSON

請求方式

POST

請求數限製

TRUE

請求參數

參數名 必選 類型 說明
appId string 從API設置中獲取_-132彩票苹果版,在直播係統登記的appId
timestamp long 13位當前時間戳
sign string 簽名值
menuIds string 菜單id_-蜜宝团,指定多個以英文逗號,分隔

響應成功JSON示例|123彩票软件:

{
  "code": 200, 
  "status": "success", 
  "message": "", 
  "data": 1
}

響應失敗JSON示例_-_加雷斯贝尔:

未輸入appId

{
    "code": 400,
    "status": "error",
    "message": "appId is required.",
    "data": ""
}

appId不正確

{
    "code": 400,
    "status": "error",
    "message": "application not found.",
    "data": ""
}

時間戳錯誤

{
    "code": 400,
    "status": "error",
    "message": "invalid timestamp.",
    "data": ""
}

簽名錯誤

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

menuId分割後為空

{
  "code": 400, 
  "status": "error", 
  "message": "param length is incorrect: menuIds", 
  "data": ""
}

菜單不存在

{
  "code": 400, 
  "status": "error", 
  "message": "illegal menu id: test", 
  "data": ""
}

菜單類型不能刪除

{
  "code": 400, 
  "status": "error", 
  "message": "can't delete special menu type", 
  "data": ""
}

字段說明

參數名 說明
code 響應代碼--船讯网船位查询,成功為200-钩子船长,失敗為400-安钢大厦,簽名錯誤為401--_来个身份证号码,異常錯誤500
status 成功為success--1号站彩票娱乐平台登录,失敗為error
message 錯誤時為錯誤提示消息
data 成功響應時為本次成功刪除的個數

php請求示例

<?php
//引用config.php
include '/srv/http/config.php';

$params = array(
  'appId' => $appId,
  'timestamp' => $timestamp,
  'menuIds' => "9991391d9d,ea4375fcfb"
);

//生成sign
$sign = getSign($params); //詳細查看config.php文件的getSign方法
$params['sign'] = $sign;

$url = "http://api.hemihome.com/live/v3/channel/menu/delete?".http_build_query($params);

$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 500);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_URL, $url);
$res = curl_exec($curl);
curl_close($curl);

echo $res;
?>

簽名規則(config.php文件代碼查看)

http://dev.hemihome.com/2018/liveproduct/l-api/rule/sign/

以上內容是否對您有幫助|-28彩票注册链接?根本沒有幫助文檔較差文檔一般文檔不錯文檔很好
Loading...

下載頁麵登記觀看記錄

接口URL

https://api.hemihome.com/live/v3/channel/auth/download-record-info

接口說明

1|_-众发娱乐合法吗、接口用於下載頻道的登記觀看列表_-|跑马的汉子歌词,包含登記觀看記錄字段和數據內容
2-菊丸英二bg、接口支持https

支持格式

JSON

請求方式

GET

請求數限製

TRUE

請求參數

參數名 必選 類型 說明
appId string 從API設置中獲取||四年级自然景观作文,在直播係統登記的appId
timestamp long 13位當前時間戳
sign string 簽名值
rank int 1為首要條件|_|八马赛珍珠5800价格,2為次要條件-|_58创业加盟网。影響導出的表格表頭
channelId int 頻道號

響應成功說明-_射雕之乞儿传说:

響應成功時-|周星驰电影大全国语版全集,接口將返回文件流_|_众购彩票,格式為.xls_-|诺基亚n85软件下载,內容為導出的登記觀看記錄數據|_盛大易购。

響應失敗JSON示例_阳谋为上:

未輸入appId

{
    "code": 400,
    "status": "error",
    "message": "appId is required.",
    "data": ""
}

appId不正確

{
    "code": 400,
    "status": "error",
    "message": "application not found.",
    "data": ""
}

時間戳錯誤

{
    "code": 400,
    "status": "error",
    "message": "invalid timestamp.",
    "data": ""
}

簽名錯誤

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

頻道不存在

{
    "code": 404,
    "status": "error",
    "message": "channel not found.",
    "data": ""
}

字段說明

參數名 說明
code 響應代碼||28彩票骗局,失敗為400-_自然景观作文400字,簽名錯誤為401||078彩票苹果版,異常錯誤500
status 成功為success||078彩票包赔本金是真的吗,失敗為error
message 錯誤時為錯誤提示消息
data 錯誤時為空串

php構建下載鏈接示例

<?php
//引用config.php
include '/srv/http/local.php';

$channelId="206204";

$params = array(
  'appId' => $appId,
  'timestamp' => $timestamp,
  'channelId' => $channelId,
  'rank' => '1'
);

//生成sign
$sign = getSign($params); //詳細查看config.php文件的getSign方法
$params['sign'] = $sign;

$url = "http://api.hemihome.com/live/v3/channel/auth/download-record-info?".http_build_query($params);
// 輸出構建後的下載鏈接
echo $url;
?>

簽名規則(config.php文件代碼查看)

http://dev.hemihome.com/2018/liveproduct/l-api/rule/sign/

以上內容是否對您有幫助___闲花弄影结局?根本沒有幫助文檔較差文檔一般文檔不錯文檔很好
Loading...

獲取頻道或全局登記觀看字段

接口URL

https://api.hemihome.com/live/v3/channel/auth/get-record-field

接口說明

1_--2019生肖鸡运势、接口用於獲取頻道或全局的登記觀看字段
2--_2019哪款app可以买足彩、接口支持https

支持格式

JSON

請求方式

GET

請求數限製

TRUE

請求參數

參數名 必選 類型 說明
appId string 從API設置中獲取_|-csol防沉迷,在直播係統登記的appId
timestamp long 13位當前時間戳
sign string 簽名值
rank int 主要觀看條件為1,次要觀看條件為2
channelId int 頻道號__-根据图标猜成语,不填為獲取全局

響應成功JSON示例-|_盈彩网彩票贴吧:

{
  "code": 200, 
  "status": "success", 
  "message": "", 
  "data": [
    {
      "type": "name", 
      "name": "姓名", 
      "options": null, 
      "placeholder": "請輸入姓名"
    }, 
    {
      "type": "mobile", 
      "name": "手機號碼", 
      "options": null, 
      "placeholder": "請輸入手機號碼"
    }, 
    {
      "type": "number", 
      "name": "數字", 
      "options": null, 
      "placeholder": "請輸入數字"
    }, 
    {
      "type": "option", 
      "name": "性別", 
      "options": "男,女", 
      "placeholder": "請選擇性別"
    }
  ]
}

響應失敗JSON示例-_|108娱乐被骗:

未輸入appId

{
    "code": 400,
    "status": "error",
    "message": "appId is required.",
    "data": ""
}

appId不正確

{
    "code": 400,
    "status": "error",
    "message": "application not found.",
    "data": ""
}

時間戳錯誤

{
    "code": 400,
    "status": "error",
    "message": "invalid timestamp.",
    "data": ""
}

簽名錯誤

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

channelId為空

{
  "code": 400, 
  "status": "error", 
  "message": "param should not be empty: channelId", 
  "data": ""
}

頻道不存在

{
  "code": 404, 
  "status": "error", 
  "message": "channel not found.", 
  "data": ""
}

頻道非法

{
  "code": 403, 
  "status": "error", 
  "message": "illegal channel id: 206240", 
  "data": ""
}

字段說明

參數名 說明
code 響應代碼_-_家教老师h漫之全彩,成功為200-_青山湖区教体局,失敗為400--实名注册和防沉迷系统,簽名錯誤為401|-东莞唐会,異常錯誤500
status 成功為success||闵行区华翔路2239号,失敗為error
message 錯誤時為錯誤提示消息
data 登記觀看的字段信息
type 登記觀看類型-红玖木商城。name-姓名-_钢结构楼梯图集;mobile-手機號碼||-3cp彩票首页;number-數字_qq炫舞答案每日更新;option-下拉選擇|-u盘修复工具合集;text-文本
name 登記觀看信息標題
placeholder 登記觀看信息描述
options 登記觀看為下拉選擇時的選項|_八马赛珍珠5800价格,選項值以英文逗號分隔

php請求示例

<?php
//引用config.php
include 'config.php';

$channelId="206204";
$rank = "1";

$params = array(
  'appId' => $appId,
  'timestamp' => $timestamp,
  'rank' => $rank
);

//生成sign
$sign = getSign($params); //詳細查看config.php文件的getSign方法
$params['sign'] = $sign;

$url = "http://api.hemihome.com/live/v3/channel/auth/get-record-field?".http_build_query($params);

$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 500);
curl_setopt($curl, CURLOPT_URL, $url);
$res = curl_exec($curl);
curl_close($curl);

echo $res;
?>

簽名規則(config.php文件代碼查看)

http://dev.hemihome.com/2018/liveproduct/l-api/rule/sign/

以上內容是否對您有幫助|_劫后余生3 9?根本沒有幫助文檔較差文檔一般文檔不錯文檔很好
Loading...

獲取頁麵登記觀看列表

接口URL

https://api.hemihome.com/live/v3/channel/auth/get-record-info

接口說明

1_-寝室皇妃、接口用於獲取頻道的登記觀看列表數據內容
2-_qq水浒媚李立、接口支持https

支持格式

JSON

請求方式

GET

請求數限製

TRUE

請求參數

參數名 必選 類型 說明
appId string 從API設置中獲取|-葫芦岛一高中家长汇,在直播係統登記的appId
timestamp long 13位當前時間戳
sign string 簽名值
channelId int 頻道號
page int 要獲取的頁碼|_|注册送29彩金平台,默認為1
pageSize int 每頁數據量__电子邮件号,默認為10

響應成功JSON示例-|柳州音乐网:

{
  "code": 200, 
  "status": "success", 
  "message": "", 
  "data": {
    "pageNumber": 1, 
    "totalPages": 1, 
    "pageSize": 10, 
    "contents": [
      {
        "createdTime": 1531982204000, 
        "params": [
          "黃泉"
        ]
      }, 
      {
        "createdTime": 1531982194000, 
        "params": [
          "黃天"
        ]
      }, 
      {
        "createdTime": 1531982185000, 
        "params": [
          "小明"
        ]
      }, 
      {
        "createdTime": 1531814855000, 
        "params": [
          "ffff"
        ]
      }
    ]
  }
}

響應失敗JSON示例_||金陵御沁园:

未輸入appId

{
    "code": 400,
    "status": "error",
    "message": "appId is required.",
    "data": ""
}

appId不正確

{
    "code": 400,
    "status": "error",
    "message": "application not found.",
    "data": ""
}

時間戳錯誤

{
    "code": 400,
    "status": "error",
    "message": "invalid timestamp.",
    "data": ""
}

簽名錯誤

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

channelId為空

{
  "code": 400, 
  "status": "error", 
  "message": "param should not be empty: channelId", 
  "data": ""
}

channelId為非數字

{
  "code": 400, 
  "status": "error", 
  "message": "param is not number: channelId", 
  "data": ""
}

頻道非法

{
  "code": 403, 
  "status": "error", 
  "message": "illegal channel id: 206240", 
  "data": ""
}

字段說明

參數名 說明
code 響應代碼__舞hime系列,成功為200-_-永盛娱乐赛车,失敗為400--亿彩彩票有猫腻吗,簽名錯誤為401|邢台二手货车百姓网,異常錯誤500
status 成功為success-|陈莎莎个人资料,失敗為error
message 錯誤時為錯誤提示消息
data 分頁的登記觀看列表數據
pageNumber 當前頁碼
totalPages 頁麵總數
pageSize 每頁數據量
contents 當前頁麵內容
createdTime 登記時間
params 登記的內容數據

php請求示例

<?php
//引用config.php
include '/srv/http/config.php';

$channelId="206204";

$params = array(
  'appId' => $appId,
  'timestamp' => $timestamp,
  'channelId' => $channelId,
  'page' => '1',
  'pageSize' => '10'
);

//生成sign
$sign = getSign($params); //詳細查看config.php文件的getSign方法
$params['sign'] = $sign;

$url = "http://api.hemihome.com/live/v3/channel/auth/get-record-info?".http_build_query($params);

$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 500);
curl_setopt($curl, CURLOPT_URL, $url);
$res = curl_exec($curl);
curl_close($curl);

echo $res;
?>

簽名規則(config.php文件代碼查看)

http://dev.hemihome.com/2018/liveproduct/l-api/rule/sign/

以上內容是否對您有幫助||陈嘉栋?根本沒有幫助文檔較差文檔一般文檔不錯文檔很好
Loading...

獲取頁麵觀看白名單列表

接口URL

https://api.hemihome.com/live/v3/channel/auth/get-white-list

接口說明

1__广州烟草网上订货、接口用於獲取全局或頻道的觀看條件白名單列表
2__沈阳小伙、接口支持https

支持格式

JSON

請求方式

GET

請求數限製

TRUE

請求參數

參數名 必選 類型 說明
appId string 從API設置中獲取|-星光大道20130202,在直播係統登記的appId
timestamp long 13位當前時間戳
sign string 簽名值
rank int 1為首要條件|-_花都区教育局网,2為次要條件
channelId int 頻道號__-鲅鱼圈观澜天下,不傳為獲取全局設置
page int 要獲取的頁碼|-360福彩双色球走势图,默認為1
pageSize int 每頁數據量|_隆化教育信息中心,默認為10
keyword string 關鍵詞|||众发娱乐输了我几十万,可根據會員碼和名稱查詢

響應成功JSON示例-_310v大赢家足球比分:

{
  "code": 200, 
  "status": "success", 
  "message": "", 
  "data": {
    "pageNumber": 1, 
    "totalPages": 4, 
    "pageSize": 5, 
    "contents": [
      {
        "name": "測試重構1", 
        "phone": "tes1", 
        "isVip": "N"
      }, 
      {
        "name": "測試重構10", 
        "phone": "tes10", 
        "isVip": "N"
      }, 
      {
        "name": "測試重構11", 
        "phone": "tes11", 
        "isVip": "N"
      }, 
      {
        "name": "測試重構12", 
        "phone": "tes12", 
        "isVip": "N"
      }, 
      {
        "name": "測試重構13", 
        "phone": "tes13", 
        "isVip": "N"
      }
    ]
  }
}

響應失敗JSON示例__|2019年白菜网站大全:

未輸入appId

{
    "code": 400,
    "status": "error",
    "message": "appId is required.",
    "data": ""
}

appId不正確

{
    "code": 400,
    "status": "error",
    "message": "application not found.",
    "data": ""
}

時間戳錯誤

{
    "code": 400,
    "status": "error",
    "message": "invalid timestamp.",
    "data": ""
}

簽名錯誤

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

字段說明

參數名 說明
code 響應代碼-陈薇茵,成功為200|-|欧美动物video与人,失敗為400-_|注册送彩金的彩票平台,簽名錯誤為401--|脱狱之王第三季,異常錯誤500
status 成功為success-_service qq com,失敗為error
message 錯誤時為錯誤提示消息
data 分頁的白名單列表數據
pageNumber 當前頁碼
totalPages 頁麵總數
pageSize 每頁數據量
contents 當前頁麵內容
name 昵稱(或備注)
phone 會員碼

php請求示例

<?php
//引用config.php
include 'config.php';

$channelId="204758";

$params = array(
  'appId' => $appId,
  'timestamp' => $timestamp,
  'channelId' => $channelId,
  'rank' => '1',
  'page' => 1,
  'pageSize' => 5,
);

//生成sign
$sign = getSign($params); //詳細查看config.php文件的getSign方法
$params['sign'] = $sign;

$url = "http://api.hemihome.com/live/v3/channel/auth/get-white-list?".http_build_query($params);

$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 500);
curl_setopt($curl, CURLOPT_URL, $url);
$res = curl_exec($curl);
curl_close($curl);

echo $res;
?>

簽名規則(config.php文件代碼查看)

http://dev.hemihome.com/2018/liveproduct/l-api/rule/sign/

以上內容是否對您有幫助|-亿人彩票平台可靠吗?根本沒有幫助文檔較差文檔一般文檔不錯文檔很好
Loading...

下載頁麵觀看白名單列表

接口URL

https://api.hemihome.com/live/v3/channel/auth/download-white-list

接口說明

1||-长发速递、接口用於下載全局或頻道的觀看條件白名單列表
2|_劫机哥、接口支持https

支持格式

JSON

請求方式

GET

請求數限製

TRUE

請求參數

參數名 必選 類型 說明
appId string 從API設置中獲取_--132彩票官网网址,在直播係統登記的appId
timestamp long 13位當前時間戳
sign string 簽名值
rank int 1為首要條件-|-小骨头影院,2為次要條件
channelId int 頻道號--北京466医院耳科,要下載的頻道號_|160彩票,不傳為全局設置

響應成功說明|-三九祛痘灵:

響應成功時_|结婚照要求,接口將返回文件流-2014新股发行一览表,格式為.xls_|阿拉尔租房网,內容為白名單列表數據_-135彩票软件。

響應失敗JSON示例|-8万买什么车好:

未輸入appId

{
    "code": 400,
    "status": "error",
    "message": "appId is required.",
    "data": ""
}

appId不正確

{
    "code": 400,
    "status": "error",
    "message": "application not found.",
    "data": ""
}

時間戳錯誤

{
    "code": 400,
    "status": "error",
    "message": "invalid timestamp.",
    "data": ""
}

簽名錯誤

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

字段說明

參數名 說明
code 響應代碼||酷派w706软件下载,失敗為400__动感地带随心聊,簽名錯誤為401_-博格利佳,異常錯誤500
status 成功為success_120dj,失敗為error
message 錯誤時為錯誤提示消息
data 由於成功時直接返回文件流下載|众赢国际可靠吗,所以這裏為空串

php構建下載鏈接示例

<?php
//引用config.php
include 'config.php';

$channelId="204140";

$params = array(
  'appId' => $appId,
  'timestamp' => $timestamp,
  'rank' => '1'
);

//生成sign
$sign = getSign($params); //詳細查看config.php文件的getSign方法
$params['sign'] = $sign;

$url = "http://api.hemihome.com/live/v3/channel/auth/download-white-list?".http_build_query($params);
// 輸出構建後的下載鏈接
echo $url;
?>

簽名規則(config.php文件代碼查看)

http://dev.hemihome.com/2018/liveproduct/l-api/rule/sign/

以上內容是否對您有幫助--3a彩票注册送18?根本沒有幫助文檔較差文檔一般文檔不錯文檔很好
Loading...

查詢打賞設置

接口URL

http://api.hemihome.com/live/v3/channel/donate/get

接口說明

1_|038彩票能提款吗、接口用於獲取全局或當前生效的打賞設置
2_|网上订票取票时间限制、接口支持https

支持格式

JSON

請求方式

GET

請求數限製

TRUE

請求參數

參數名 必選 類型 說明
appId string 從API設置中獲取_--配角顾海滨,在直播係統登記的appId
timestamp long 13位當前時間戳
sign string 簽名值
channelId int 頻道號_我们的歌声里歌词,不傳為獲取全局設置-_01彩票网页,否則為當前生效設置

響應成功JSON示例|_奇迹世界2狂战士加点:

{
  "code": 200,
  "status": "success",
  "message": "",
  "data": {
    "globalSettingEnabled": "N",
    "donateCashEnabled": "Y",
    "donateGoodEnabled": "Y",
    "donateTips": null,
    "cashMin": 0,
    "cashes": [
      0.88,
      6.66,
      8.88,
      18.88,
      66.6,
      88.8
    ],
    "goods": [
      {
        "goodName": "鮮花",
        "goodImg": "//livestatic.videocc.net/uploaded/images/webapp/channel/donate/01-flower.png",
        "goodPrice": 0,
        "goodEnabled": "Y"
      },
      {
        "goodName": "咖啡",
        "goodImg": "//livestatic.videocc.net/uploaded/images/webapp/channel/donate/02-coffee.png",
        "goodPrice": 0.99,
        "goodEnabled": "Y"
      },
      {
        "goodName": "點讚",
        "goodImg": "//livestatic.videocc.net/uploaded/images/webapp/channel/donate/03-good.png",
        "goodPrice": 1.99,
        "goodEnabled": "Y"
      },
      {
        "goodName": "掌聲",
        "goodImg": "//livestatic.videocc.net/uploaded/images/webapp/channel/donate/04-applaud.png",
        "goodPrice": 2.99,
        "goodEnabled": "Y"
      },
      {
        "goodName": "666",
        "goodImg": "//livestatic.videocc.net/uploaded/images/webapp/channel/donate/05-666.png",
        "goodPrice": 6.66,
        "goodEnabled": "Y"
      },
      {
        "goodName": "小星星",
        "goodImg": "//livestatic.videocc.net/uploaded/images/webapp/channel/donate/06-star.png",
        "goodPrice": 9.99,
        "goodEnabled": "Y"
      },
      {
        "goodName": "鑽石",
        "goodImg": "//livestatic.videocc.net/uploaded/images/webapp/channel/donate/07-diamond.png",
        "goodPrice": 19.99,
        "goodEnabled": "Y"
      },
      {
        "goodName": "跑車",
        "goodImg": "//livestatic.videocc.net/uploaded/images/webapp/channel/donate/08-car.png",
        "goodPrice": 29.99,
        "goodEnabled": "Y"
      },
      {
        "goodName": "火箭",
        "goodImg": "//livestatic.videocc.net/uploaded/images/webapp/channel/donate/09-rocket.png",
        "goodPrice": 66.66,
        "goodEnabled": "Y"
      }
    ]
  }
}

響應失敗JSON示例-|_纽维t200:

未輸入appId

{
    "code": 400,
    "status": "error",
    "message": "appId is required.",
    "data": ""
}

appId不正確

{
    "code": 400,
    "status": "error",
    "message": "application not found.",
    "data": ""
}

時間戳錯誤

{
    "code": 400,
    "status": "error",
    "message": "invalid timestamp.",
    "data": ""
}

簽名錯誤

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

字段說明

參數名 說明
code 返回狀態碼|-脉诺通,成功為200-_|cf女角色h,參數錯誤為400_-2019网上彩票送彩金。
status 狀態|__众赢彩票论坛,成功返回success__|叶檀简历,失敗返回error
message 錯誤提示信息-|-长城风骏房车2012款,成功時為空串
data 打賞設置的相關信息
globalSettingEnabled 是否應用全局設置_--揭刘汉留下多少遗产,獲取全局設置時_||华为参观,該值為null
donateCashEnabled 現金打賞開關
donateGoodEnabled 道具打賞開關
donateTips 打賞提示
cashMin 最低打賞金額
cashes 打賞金額選項
goods 打賞道具選項
goodName 道具選項名
goodImg 道具選項對應的圖片
goodPrice 道具選項對應的價格
goodEnabled 是否啟用該道具

php請求示例

<?php
//引用config.php
include 'config.php';

$channelId="206016";

$params = array(
  'appId' => $appId,
  'timestamp' => $timestamp,
  'channelId' => $channelId
);

//生成sign
$sign = getSign($params); //詳細查看config.php文件的getSign方法
$params['sign'] = $sign;

$url = "http://api.hemihome.com/live/v3/channel/donate/get?".http_build_query($params);

$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 500);
curl_setopt($curl, CURLOPT_URL, $url);
$res = curl_exec($curl);
curl_close($curl);

echo $res;
?>

簽名規則(config.php文件代碼查看)

http://dev.hemihome.com/2018/liveproduct/l-api/rule/sign/

以上內容是否對您有幫助__小学生400字日记?根本沒有幫助文檔較差文檔一般文檔不錯文檔很好
Loading...

修改微信分享設置

接口URL

http://api.hemihome.com/live/v3/channel/weixin-share/update

接口說明

1|-爽娃娃、接口用於修改頻道的微信分享相關設置
2--_2628彩票平台注册、接口支持https

支持格式

JSON

請求方式

POST

請求數限製

TRUE

請求參數

參數名 必選 類型 說明
appId string 從API設置中獲取__|天翼无线上网卡驱动,在直播係統登記的appId
timestamp long 13位當前時間戳
sign string 簽名值
channelId int 頻道號
weixinShareTitle string 微信分享的標題
weixinShareDesc string 微信分享的描述

響應成功JSON示例-|本草仙目:

{
    "code": 200,
    "status": "success",
    "message": "",
    "data": "success"
}

響應失敗JSON示例_-深圳东门步行街攻略:

未輸入appId

{
    "code": 400,
    "status": "error",
    "message": "appId is required.",
    "data": ""
}

appId不正確

{
    "code": 400,
    "status": "error",
    "message": "application not found.",
    "data": ""
}

時間戳錯誤

{
    "code": 400,
    "status": "error",
    "message": "invalid timestamp.",
    "data": ""
}

簽名錯誤

{
    "code": 403,
    "status": "error",
    "message": "invalid signature.",
    "data": ""
}

頻道Id格式錯誤

{
    "code": 400,
    "status": "error",
    "message": "param is not digit: %s",
    "data": ""
}

頻道不存在

{
    "code": 404,
    "status": "error",
    "message": "channel not found.",
    "data": ""
}

頻道Id非法錯誤

{
    "code": 400,
    "status": "error",
    "message": "illegal channel id: %s",
    "data": ""
}

字段說明

參數名 說明
code 狀態碼,成功為200-__3M彩票平台,簽名失敗為403--|初一下册数学期末试卷,參數錯誤為400_--我要看一级片,服務端錯誤為500
status 成功為success,錯誤時為error
message 成功為""_-_51jiemeng,錯誤時為錯誤描述信息
data 成功時success|阜阳卫生局网,錯誤時為""

php請求示例

<?php
//引用config.php
include 'config.php';

$params = array(
  'appId' => "填寫獲取到的appId",
  'timestamp' => "填寫13位時間戳",
  'channelId' => "填寫頻道號",
  'weixinShareTitle' => "我要改標題",
  'weixinShareDesc' => "我要改描述"
);

//生成sign
$sign = getSign($params); //詳細查看config.php文件的getSign方法


$url="http://api.hemihome.com/live/v3/channel/weixin-share/update";

function post($url, $post_data = '', $timeout = 5){
   $ch = curl_init();
   curl_setopt ($ch, CURLOPT_URL, $url);
   curl_setopt ($ch, CURLOPT_POST, 1);
   if($post_data != ''){
      curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
   }

   curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
   curl_setopt($ch, CURLOPT_HEADER, false);
   $file_contents = curl_exec($ch);
   curl_close($ch);
   return $file_contents;
}

$params["sign"] = $sign;
echo post($url, $params);
?>

簽名規則(config.php文件代碼查看)

http://dev.hemihome.com/2018/liveproduct/l-api/rule/sign/

以上內容是否對您有幫助__|诺尔丝假发?根本沒有幫助文檔較差文檔一般文檔不錯文檔很好
Loading...