接口说明

以 DescribeLiveStreamsFrameRateAndBitRateData接口为例。

以下是SDK中的DescribeLiveStreamsFrameRateAndBitRateDataRequest.py

# Licensed to the Apache Software Foundation (ASF) under one

# or more contributor license agreements. See the NOTICE file

# distributed with this work for additional information

# regarding copyright ownership. The ASF licenses this file

# to you under the Apache License, Version 2.0 (the

# "License"); you may not use this file except in compliance

# with the License. You may obtain a copy of the License at

#

# http://www.apache.org/licenses/LICENSE-2.0

#

#

#

# Unless required by applicable law or agreed to in writing,

# software distributed under the License is distributed on an

# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

# KIND, either express or implied. See the License for the

# specific language governing permissions and limitations

# under the License.

from aliyunsdkcore.request import RpcRequest

class DescribeLiveStreamsFrameRateAndBitRateDataRequest(RpcRequest):

def __init__(self):

RpcRequest.__init__(self, 'live', '2016-11-01', 'DescribeLiveStreamsFrameRateAndBitRateData','live')

def get_SecurityToken(self):

return self.get_query_params().get('SecurityToken')

def set_SecurityToken(self,SecurityToken):

self.add_query_param('SecurityToken',SecurityToken)

def get_OwnerId(self):

return self.get_query_params().get('OwnerId')

def set_OwnerId(self,OwnerId):

self.add_query_param('OwnerId',OwnerId)

def get_DomainName(self):

return self.get_query_params().get('DomainName')

def set_DomainName(self,DomainName):

self.add_query_param('DomainName',DomainName)

def get_AppName(self):

return self.get_query_params().get('AppName')

def set_AppName(self,AppName):

self.add_query_param('AppName',AppName)

def get_StreamName(self):

return self.get_query_params().get('StreamName')

def set_StreamName(self,StreamName):

self.add_query_param('StreamName',StreamName)

def get_StartTime(self):

return self.get_query_params().get('StartTime')

def set_StartTime(self,StartTime):

self.add_query_param('StartTime',StartTime)

def get_EndTime(self):

return self.get_query_params().get('EndTime')

def set_EndTime(self,EndTime):

self.add_query_param('EndTime',EndTime)

该文件中对于DescribeLiveStreamsFrameRateAndBitRateDataRequest这个类,有若干组一一对应的get_X和set_X方法,分别用于设定该 API 请求的参数,具体每一个请求参数对应的意义,您可以在阿里云官网的直播 API 文档中找到。

python调用sdk接口_Python SDK使用说明相关推荐

  1. python调用文件下载接口_python接口自动化21-下载excel文件(Content-Type:octets/stream)...

    前言 Content-Type类型为octets/stream,这种一般是文件类型了,比如有时候需要导出excel数据,下载excel这种场景如何用python来实现呢? 抓下载接口 1.下载的场景如 ...

  2. python调用c 接口_python调用C接口

    5.结构体定义 我们用 fields = [('name1',type1),('name2',type2)]来表示结构体的成员 字节对齐 C结构体中经常会出现按照指定的字节进行对齐结构体,用pack来 ...

  3. python调用zabbixapi接口_python调用zabbix api获取主机信息

    import requests import json headers = { 'Content-Type': 'application/json' } class GetZabbix: def __ ...

  4. python调用webservice接口实例_python调用各种接口,webservice,c接口,com接口,socket协议方法...

    python调用webservice接口(SOAP) (2)调用示例: 需要先安装suds库:pip install suds from suds.client import Client #如果需要 ...

  5. python调用第三方接口获取数据_python调用接口,python接收post请求接口(附完整代码)...

    与Scala语言相比,Python有其独特的优势和广泛的应用,python调用接口,因此Spark也推出了PySpark,它在框架上提供了一个使用Python语言的接口,python接收post请求接 ...

  6. python创建api接口_Python调用飞书API接口

    知乎文章若有排版问题请见谅,原文放在个人博客中[欢迎互踩!] 写在最前 飞书作为一款高效远程办公软件,在疫情期间凭借着人性化的UI交互以及稳定的远程联络能力深得各大企业的偏好.但在创建团队之初,难免遇 ...

  7. pythondockerapi_docker-py 用Python调用Docker接口的方法

    众所周知,Docker向外界提供了一个API来管理其中的资源.这个API可以是socket文件形式的(一般也是默认的,在/var/run/docker.sock中),也可以是TCP形式的.以前想要通过 ...

  8. c调python_应该是史上最全的python调用C接口

    在这段时间里,我需要使用python调用C接口.我在网上搜索了很多,再加上python的官方文件,并组织备份1.从ctypes加载dll导入* dll = () # func1dll = CDLL ( ...

  9. python rpc_对python调用RPC接口的实例详解

    要调用RPC接口,python提供了一个框架grpc,这是google开源的 rpc相关文档: 需要安装的python包如下: 1.grpc安装 pip install grpcio 2.grpc的p ...

最新文章

  1. 【读书笔记《Android游戏编程之从零开始》】17.游戏开发基础(游戏适屏的简述和作用、让游戏主角动起来)...
  2. Vue简单用法目录总结 以及 前端基础总结传送门:
  3. 124. Leetcode 583. 两个字符串的删除操作 (动态规划- 字符串系列)
  4. 如果没准备这些面试题,找工作还是缓一缓吧
  5. 转:验证curl_init() 返回 false时..
  6. 广西龙脊梯田景区发生山体崩塌
  7. 联想小新增加固态硬盘后安装不了系统_4千价位也能面面俱到?小新Air14 2020锐龙版体验测试...
  8. 概念模型——分析模式学习笔记
  9. [not] exists 和 in
  10. spring AOP 切在方法上可以改变方法的返回值
  11. python3中pygame安装过程(超级详细)
  12. 软考高级系统架构设计师总结
  13. 2020最新Javaweb视频教程-Javaweb从入门到精通【JSP】
  14. 简单博饼游戏的实现(java)
  15. 126邮箱注册思维导图
  16. 桌面云服务器联想,联想Livc桌面云解决方案产品介绍
  17. Unity 动态改变Text字体颜色
  18. 【Multisim仿真】光控报警电路
  19. linux开机启动任务和定时执行任务
  20. 疯狂动物城 zootopia

热门文章

  1. Kaggle 数据清洗挑战 Day 3 - 快速解析日期(date)数据
  2. Maven聚合工程怎么变回普通的Maven工程
  3. 2017-2018-1 20155308 《信息安全系统设计基础》课堂第六章测试(补做)
  4. 【模板】ISAP最大流
  5. Activiti 手工任务(manualTask)
  6. es6继承 vs js原生继承(es5)
  7. Elasticsearch增删改查 之 —— Delete删除
  8. node.js第十课(HTTPserver)
  9. springcloud-eureka简单实现
  10. Eclipse 隐藏已关闭的项目