File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ fd.close()
4343- [ Get a template] ( #get_template )
4444- [ Generate template ID] ( #generate_template_id )
4545- [ Set access token] ( #set_access_token )
46+ - [ Set timeout] ( #set_timeout )
4647- [ Set API version] ( #set_api_version )
4748- [ Get API status] ( #get_status )
49+ - [ Webhook Rendering] ( #webhook-rendering )
4850
4951### CarboneSDK Constructor
5052** Definition**
@@ -276,3 +278,21 @@ except Exception as err:
276278 print (" Something went wrong: {0} " .format(err))
277279```
278280
281+ ### Webhook Rendering
282+
283+ ** Example**
284+ ``` python
285+ import carbone_sdk
286+
287+ csdk = carbone_sdk.CarboneSDK(" your_access_token" )
288+ csdk._api_headers[' carbone-webhook-url' ] = ' https://custom.webhook/' '
289+
290+ try :
291+ resp = csdk.render_report(templateId, json_data)
292+ # resp["success"] => True / False
293+ # resp["message"] => "A render ID will be sent to your callback URL when the document is generated"
294+ except Exception as err:
295+ print (" Something went wrong" )
296+ print (err)
297+ ```
298+
You can’t perform that action at this time.
0 commit comments