如果帖子提交成功或失败,Google Buzz 会返回状态吗?
您好,帖子提交后如何知道状态?在我的网站上,我制作了一个谷歌嗡嗡声按钮,当我单击此按钮时,定义的帖子将提交到谷歌嗡嗡声网址。但我想知道帖子提交是成功还是失败,因为我需要对此进行跟踪。这样,如果我已经在那里发布了,下次我就不需要在那里显示嗡嗡声图标。
那么我怎么知道这是成功还是失败呢?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要进行 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.