开发者

Authorized used of goo.gl API to add URLs to user history

With Google opening the goo.gl API a few weeks ago, it's quite easy to use it with POST:

curl -F "url=LONGUR开发者_Go百科L" http://goo.gl/api/shorten

The response is like this:

{"short_url":"http://goo.gl/A9MR","added_to_history":false}

So, does anyone know how to perform an authorized POST to the goo.gl API so that the shortened URL is added to the users history as if you would use the browser? I tried providing a basic Authorization header using my Google mail address and password, but that doesn't work.


It's not really a public API, yet. What you're using is what the goo.gl site uses itself, but it's not designed for public use like you're trying to do. They do plan on launching one though, and when they do I'm sure they'll add it as an option.

See this post

EDIT: This is now possible with the newly launched API. See the docs here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜