尝试使用g +文档中的示例Authorize requests using OAuth 2.0: ON.得到Unauthorized了结果.这是输出:
Request
POST https://www.googleapis.com/plus/v1/people/me/moments/vault?debug=true&key={YOUR_API_KEY}
Content-Type: application/json
Authorization: Bearer *my_token*
X-JavaScript-User-Agent: Google APIs Explorer
{
"target": {
"url": "https://developers.google.com/+/web/snippet/examples/thing"
},
"type": "http://schemas.google.com/AddActivity"
}
Response
401 Unauthorized
cache-control: private, max-age=0
content-encoding: gzip
content-length: 93
content-type: application/json; charset=UTF-8
date: Fri, 01 Mar 2013 18:56:34 GMT
expires: Fri, 01 Mar 2013 18:56:34 GMT
server: GSE
www-authenticate: AuthSub realm="https://www.google.com/accounts/AuthSubRequest" allowed-scopes="https://www.googleapis.com/auth/plus.login,https://www.google.com/accounts/OAuthLogin"
{
"error": {
"errors": [
{
"message": "Unauthorized"
}
],
"code": 401,
"message": "Unauthorized" …Run Code Online (Sandbox Code Playgroud) 根据文档,%{}:,应使用斜杠转义。但是当我转义时%,未添加文本。错误消息说Stray % near ')'。但是它是什么意思,我该如何解决?命令和输出:
$ /usr/bin/ffmpeg -y -i /home/www/255871.mov -af 'aresample=async=1:min_hard_comp=0.100000' -vf 'scale=480:trunc(ow/a/2)*2,transpose=1 [in];movie=watermarks/text-box440.mov,scale=320:55 [bg];[in][bg] overlay=x=20:y=main_h-80,drawtext=fontsize=20:fix_bounds=1:fontfile=Helvetica\\:Style=bold:fontcolor=0xe6b300:text=small kitten \%\):x=30:y=h-80+ascent/2:draw=gte(t\,0)\;lt(t\,5) [out]' -pix_fmt yuv420p -r 24.39 -map_metadata -1 -movflags +faststart -f mp4 -vcodec libx264 -b:v 800k -maxrate 1100k -bufsize 2M -bt 256k -profile:vbaseline -acodec libfdk_aac -ab 64k -ar 44100 -ac 1 /tmp/kitten.mp4
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 15 2013 18:40:14 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
configuration: --enable-gpl …Run Code Online (Sandbox Code Playgroud)