This blog post is intended to be a working draft to discuss the implementation of RESTHooks in QBO3. Sample use cases include:
Provide RESTHook callback parameters:
RESTHook actions:
RESTHook payload:
What a RESTHook is NOT:
Sample Use Case: Matrix/AsyncLookupMatrix/AsyncLookup is used to bulk-process matrix calls. The body of the post is an XML document containing Matrix inputs; we probably don't want to force a third party developer to mix their RESTHook into that. Thus, we could do the following on the request: RESTHook on the query string: GET http://localhost/Application/Matrix.ashx/AsyncLookup?Matrix=ABC 123&RESTHook=smtp:someone@example.com HTTP/1.1 Host: localhost Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 ... RESTHook in an HTTP Header: GET http://localhost/Application/Matrix.ashx/AsyncLookup?Matrix=ABC 123 HTTP/1.1 Host: localhost Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 X-REST-Hook: smtp:someone@example.com ... In either case, en email would go out to someone@example.com with some sort of body. We might extend the queuing infrastructure to handle RESTHooks by considering them a callback. Roughly:
|
Quandis Business Objects 3 > QBO 3 Blog >