什么是关系的回调URL到API? [英] What is a callback URL in relation to an API?
问题描述
我一直在淘净,似乎并不能环绕回调URL的想法我的头。在我来说,我有我有自己定义一些回调的URL。一个流行的一个是默认回调URL。这是什么东西到底是什么?您能否给用简单的英语的例子吗?
I've been scouring the net, and can't seem to wrap my head around the idea of a callback URL. In my case I have a few callback URLs that I have to define myself. A popular one is a "default callback URL". What is this exactly? Can you give an example in plain english?
推荐答案
一个回调URL将它完成后,你调用API方法被调用。所以,如果你
A callback URL will be invoked by the API method you're calling after it's done. So if you call
POST /api.example.com/foo?callbackURL=http://my.server.com/bar
然后当完成 /富
,它会发送一个请求到 http://my.server.com/bar
。该请求的内容和方法去改变 - 检查你所访问的API文档
Then when /foo
is finished, it sends a request to http://my.server.com/bar
. The contents and method of that request are going to vary - check the documentation for the API you're accessing.
这篇关于什么是关系的回调URL到API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!