如果帖子提交成功或失败,Google Buzz 会返回状态吗?

发布于 2024-10-29 23:29:47 字数 490 浏览 5 评论 0原文

您好,帖子提交后如何知道状态?在我的网站上,我制作了一个谷歌嗡嗡声按钮,当我单击此按钮时,定义的帖子将提交到谷歌嗡嗡声网址。但我想知道帖子提交是成功还是失败,因为我需要对此进行跟踪。这样,如果我已经在那里发布了,下次我就不需要在那里显示嗡嗡声图标。

那么我怎么知道这是成功还是失败呢?

http://www.google.com/buzz/post?message=Here's%20Buzz!&url=http://www.google.com/buzz

或者

window.open(
  "http://www.google.com/buzz/post?" +
  "message=Here's%20Buzz!&url=http://www.google.com/buzz",
  "_blank",
  "resizable=0,scrollbars=0,width=690,height=415"
);

Hi How can I know the status after the post submission? from my site i have made a google buzz buton when I click on this the defined post will submit to the google buzz url. but I want to know if the post submission was success of failure, because I need to keep a track on that. So that on next time I dont need to show the buzz icon there if I already posted there.

So how will I know it was a success or failure?

http://www.google.com/buzz/post?message=Here's%20Buzz!&url=http://www.google.com/buzz

or

window.open(
  "http://www.google.com/buzz/post?" +
  "message=Here's%20Buzz!&url=http://www.google.com/buzz",
  "_blank",
  "resizable=0,scrollbars=0,width=690,height=415"
);

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

够钟 2024-11-05 23:29:47

您需要进行 API 调用来搜索发布的 URL,或者需要订阅 Buzz Firehose 以确认帖子已成功创建。该小部件没有回调机制。

或者,您可以浏览 OAuth 2 序列,而不是通过小部件发布,而是通过 API 发布。通过 API 发布将会给您一个回复,告诉您是否成功。

You would need to either make an API call to search for the URL posted or you would need to subscribe to the Buzz Firehose to confirm that the post was created successfully. The widget does not have a callback mechanism.

Alternatively, you could go through the OAuth 2 sequence, and instead of posting via the widget, post via the API. Posting via the API will give you a response back telling you whether it succeeded or not.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文