Snippets

Monil Gandhi Get Personnel Details

Created by Monil Gandhi
from __future__ import print_function
import time
import braango
from braango.rest import ApiException
from pprint import pprint

'''
@author braango
         
         Sample code showing how to get personnel details 
         
'''


#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.PersonnelsApi()

# str | Sub dealer for which this sales person belongs to.
subdealerid = 'subdealers2002' 

# str | Sales person ID that was returned when this personnel was created
salespersonid = 'd1e5cb9c-def7-4273-85c7-46a1b5e46869'

# 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' 

try: 
    # Get personnel
    api_response = api_instance.get_personnel(subdealerid, salespersonid, api_key, account_type)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PersonnelsApi->get_personnel: %s\n" % e)

Comments (0)

HTTPS SSH

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