Snippets

Monil Gandhi Delete One Webhook

Created by Monil Gandhi
import time
import braango
import braango.models
import braango.apis
from braango.rest import ApiException
from pprint import pprint

'''
  @author braango
         
          Sample code showing how to delete one webhooks
'''

#TEST auth token. Please contact
#sales@braango.com to have one
#created for you

braango.configuration.api_key['auth_token'] = 'ISNWF0P30WM0CMK'

# create an instance of the API class
api_instance = braango.WebhooksApi()

# str | id of _sub_dealer_
subdealerid = 'subdealers2004' 

# str | id of _personnel_
salespersonid = 'c5313913-5768-4eef-b5ea-447cc8f5aec3' 

# str | API Key to access this dealer's resources. 
#Value was returned when create_account api was called and 
#dealer was created first time 
api_key = 'ISNMdzuNiKG7jhl9d9v'

# str | Dealer or partner is accessing this API
account_type = 'partner'


# str | authId
authid = 'webhook-auth-id' 

try: 
    # Delete One Webhook
    api_instance.delete_one_webhook(subdealerid, salespersonid, authid, api_key, account_type)
except ApiException as e:
    print("Exception when calling WebhooksApi->delete_one_webhook: %s\n" % e)

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.