如何使用Video API控制台 [英] how to use Video API console

查看:63
本文介绍了如何使用Video API控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我用这个网站来测试视频API 

I used this site to test Video API 

https://dev.projectoxford.ai/ docs / services / 565d6516778daf15800928d5 / operations / 565d6517778daf0978c45e39 / console

https://dev.projectoxford.ai/docs/services/565d6516778daf15800928d5/operations/565d6517778daf0978c45e39/console

所以我尝试将一些代码写入请求正文并填写  Ocp- Apim-Subscription-Key

so I  try to write  some code into  request body and fill out Ocp-Apim-Subscription-Key

请求正文内容:

{" Url" ;:""http://expirebox.com/files/9fbd6cce647bf115a9925535c336e15f.mp4"}

{ "Url": "http://expirebox.com/files/9fbd6cce647bf115a9925535c336e15f.mp4"}

然后,推送se nd按钮 

结果显示:


202 Accepted

202 Accepted


Pragma: no-cache Operation-Location: https://api.projectoxford.ai/video/v1.0/operations/6af4dc5d-cf45-4b8d-a59b-5a566d311a89 Cache-Control: no-cache Set-Cookie: ai_session=bf88d1cd8b584365901f9246c52b7467|2016-01-08T08:30:12.9927472+00:00|2016-01-08T08:30:12.9927472+00:00; expires=Fri, 08-Jan-2016 09:00:12 GMT; path=/,ai_user=04bbd08e45d649f38f3986de3585377f|2016-01-08T08:30:12.9927472+00:00; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/ X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Fri, 08 Jan 2016 08:30:11 GMT Content-Length: 0 Expires: -1

=========================================== ================================================== ========

我不知道这些响应是怎么回事,

请告诉我下一步的步骤。

谢谢

YK

推荐答案

我认为有一个您的子密钥出现问题

i think there is a problem with your subs key

这里是回复: 

here is the response : 

{ "error": { "code": "Unauthorized", "message": "Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key." } }

或者您忘记了必须在您的请求网址中添加的一些令牌..

or maybe you forget about some token which must be added in your request url..

也许文档可以帮助你


这篇关于如何使用Video API控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆